theslinux-home branch core updated f7ffc54 git.hook.post-receive: Use :Ruby >= 2.0. Ignore :rvm checking

  • From: git@xxxxxxxxxxxxxxxxxxxx
  • To: theslinux-phantom@xxxxxxxxxxxxx
  • Date: Mon, 12 Aug 2013 00:33:34 -0700

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "theslinux-home".

The branch, core has been updated
       via  f7ffc5417b6d523117561ce6a5b78e84550f6303 (commit)
      from  a171c3f7747a76047b29369cffb36d918beb99bd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f7ffc5417b6d523117561ce6a5b78e84550f6303
Author: Ky-Anh Huynh <kyanh@xxxxxxxxxxxxx>
Date:   Mon Aug 12 14:32:09 2013 +0700

    git.hook.post-receive: Use :Ruby >= 2.0. Ignore :rvm checking

-----------------------------------------------------------------------

Summary of changes:
 bin/git.hook.post-receive.sh | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

diff --git a/bin/git.hook.post-receive.sh b/bin/git.hook.post-receive.sh
index 7518134..e360cd8 100755
--- a/bin/git.hook.post-receive.sh
+++ b/bin/git.hook.post-receive.sh
@@ -33,19 +33,8 @@ die() {
 }
 
 _setup() {
-  if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
-    source "$HOME/.rvm/scripts/rvm"
-    rvm use default
-  else
-    die "rvm not found. We need ruby1.9"
-  fi
-
-  # source $HOME/bin/ssh-agent.sh >/dev/null 2>&1 \
-  #   || die "Can't load ssh configuration"
-  #
-  # msg "Testing ssh connection (skipped)"
-  # [[ $? -eq 0 ]] || die "Can't make connect to remote server 
ssh.tuxfamily.org"
-
+  { ruby -v | grep -q 'ruby 2.0' ; } \
+  || die "Unable to find Ruby >= 2.0"
   cd $_D_VAR || die "Can't switch to directory $_D_VAR"
 }
 


hooks/post-receive
-- 
theslinux-home
--
Purpose: Store commits, feeds from other projects
Post: mailto:theslinux-phantom@xxxxxxxxxxxxx
Archive, Gmane: http://theslinux.org/lists/phantom/
Subscribe: mailto:theslinux-phantom-request@xxxxxxxxxxxxx?Subject=subscribe
Unsubscribe: mailto:theslinux-phantom-request@xxxxxxxxxxxxx?Subject=unsubscribe
Other information: http://theslinux.org/lists (vi) or 
http://theslinux.org/lists/en (en)
Support: mailto:theslinux-questions@xxxxxxxxxxxxx

Other related posts:

  • » theslinux-home branch core updated f7ffc54 git.hook.post-receive: Use :Ruby >= 2.0. Ignore :rvm checking - git