Sha256: b578d1d9df5d5def1e4a968928dc2b59f31fbedcfe1c11b9b5173211b78aea40

Contents?: true

Size: 669 Bytes

Versions: 4

Compression:

Stored size: 669 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  namespace :rvm do
    desc <<-DESC
      Create rvm wrappers for background tasks,
      in any script adding rvm support looks like:

      rvm_path=/usr/local/rvm
      if [[ -s "$rvm_path/environments/${application}" ]]
      then PATH="$rvm_path/wrappers/${application}:$PATH"
      fi
    DESC
    task :create_wrappers, :roles => :app, :except => {:no_bundle => true} do
      run_rvm_or <<-SHELL
        rvm alias create #{application} #{fetch(:rvm_ruby_string,nil)}
        rvm wrapper #{application} --no-links --all
      SHELL
    end

    after "bundler:bundle_gems","rvm:create_wrappers"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eycap-0.6.12 lib/eycap/recipes/rvm.rb
eycap-0.6.11 lib/eycap/recipes/rvm.rb
eycap-0.6.10 lib/eycap/recipes/rvm.rb
eycap-0.6.9 lib/eycap/recipes/rvm.rb