Sha256: 6e7ab4fc9800f436241cff0e71bd9ffdd135df80fe05c8aef41adf2bb29faf94

Contents?: true

Size: 599 Bytes

Versions: 4

Compression:

Stored size: 599 Bytes

Contents

#!/bin/bash

<%- unless rvm_string == 'none' %>
  # Load RVM into a shell session *as a function*
  if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then

    # First try to load from a user install
    source "$HOME/.rvm/scripts/rvm"
    <%= "rvm use #{rvm_string}" %>

  elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then

    # Then try to load from a root install
    source "/usr/local/rvm/scripts/rvm"
    <%= "rvm use #{rvm_string}" %>

  else
    printf "ERROR: RVM was enabled in config but no RVM installation was not found.\n"
  fi
<%- end -%>

cd ..
unset GIT_DIR

bundle exec blazing post_receive

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blazing-0.0.16 lib/blazing/cli/templates/post-hook.tt
blazing-0.0.15 lib/blazing/cli/templates/post-hook.tt
blazing-0.0.14 lib/blazing/cli/templates/post-hook.tt
blazing-0.0.13 lib/blazing/cli/templates/post-hook.tt