Sha256: c9a5aea6089109fb47818f3da0020eeebc4377215c637f42cef6224a58cfb7d3

Contents?: true

Size: 597 Bytes

Versions: 8

Compression:

Stored size: 597 Bytes

Contents

# Extension to empty gemset.

require 'rvm/capistrano/base'

rvm_with_capistrano do
  namespace :rvm do

    desc "Empty gemset"
    task :empty_gemset do
      ruby, gemset = rvm_ruby_string_evaluated.to_s.strip.split /@/
      if %w( release_path default ).include? "#{ruby}"
        raise "gemset can not be emptied when using :rvm_ruby_string => :#{ruby}"
      else
        if gemset
          run_rvm("rvm --force gemset empty #{gemset}",
                   :with_rvm_group => true, :with_ruby => ruby,
                   :subject_class => :gemsets)
        end
      end
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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