Sha256: 60379e8375d836e956f1ea97fc5f90d052b4528905face612f9ffe5e896468b5

Contents?: true

Size: 979 Bytes

Versions: 4

Compression:

Stored size: 979 Bytes

Contents

<% if @config.rvm %>

  #
  # Custom RVM script location?
  #
  <% if @config.rvm_scripts %>

    source <%= @config.rvm_scripts %>
    echo "------> [blazing] Loading rvmscripts from custom location"

  #
  # Normal RVM installation
  #
  <% else %>
    # 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"

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

      # Then try to load from a root install
      source "/usr/local/rvm/scripts/rvm"

    else
      echo '------> [blazing] ERROR: RVM was enabled in config but no RVM installation was not found\n'
    fi
  <% end %>

  #
  # Apply rvm env
  #
  <% if @config.rvm == :rvmrc %>
    echo "------> [blazing] Loading rvm from .rvmrc"
    source .rvmrc
  <% else %>
    echo "------> [blazing] Loading rvm string: <%= @config.rvm %>"
    rvm use <%= @config.rvm %>
  <% end %>

<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blazing-0.2.14 lib/blazing/templates/hook/rvm.erb
blazing-0.2.13 lib/blazing/templates/hook/rvm.erb
blazing-0.2.12 lib/blazing/templates/hook/rvm.erb
blazing-0.2.11 lib/blazing/templates/hook/rvm.erb