Sha256: 8867b1f021bc83d66fd098b3601b377266a83feb2e85978aa2bd676a6c851cb4

Contents?: true

Size: 590 Bytes

Versions: 8

Compression:

Stored size: 590 Bytes

Contents

require 'rvm/capistrano/base'

rvm_with_capistrano do
  namespace :rvm do

    desc "Install a gem, 'cap rvm:install_gem GEM=my_gem'."
    rvm_task :install_gem do
      run_rvm("gem install #{ENV['GEM']}",
               :with_ruby => rvm_ruby_string_evaluated,
               :subject_class => :gemsets)
    end

    desc "Uninstall a gem, 'cap rvm:uninstall_gem GEM=my_gem'."
    rvm_task :uninstall_gem do
      run_rvm("gem uninstall --no-executables #{ENV['GEM']}",
               :with_ruby => rvm_ruby_string_evaluated,
               :subject_class => :gemsets)
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rvm-capistrano-1.5.6 lib/rvm/capistrano/gem_install_uninstall.rb
rvm-capistrano-1.5.5 lib/rvm/capistrano/gem_install_uninstall.rb
rvm-capistrano-1.5.4 lib/rvm/capistrano/gem_install_uninstall.rb
rvm-capistrano-1.5.3 lib/rvm/capistrano/gem_install_uninstall.rb
rvm-capistrano-1.5.2 lib/rvm/capistrano/gem_install_uninstall.rb
rvm-capistrano-1.5.1 lib/rvm/capistrano/gem_install_uninstall.rb
rvm-capistrano-1.5.0 lib/rvm/capistrano/gem_install_uninstall.rb
rvm-capistrano-1.5.0.rc1 lib/rvm/capistrano/gem_install_uninstall.rb