Sha256: 6c8952d3ecc1c14e2b11ce7dd5892dff1f95032f74d4e4decae11755e5266713

Contents?: true

Size: 625 Bytes

Versions: 8

Compression:

Stored size: 625 Bytes

Contents

require 'rvm/capistrano/base'
require 'rvm/capistrano/helpers/with_rvm_group'

rvm_with_capistrano do
  namespace :rvm do

    desc "Create gemset"
    rvm_task :create_gemset do
      ruby, gemset = fetch(:rvm_ruby_string_evaluated).to_s.strip.split(/@/)
      if %w( release_path default ).include? "#{ruby}"
        raise "

gemset can not be created when using :rvm_ruby_string => :#{ruby}

"
      else
        if gemset
          run_rvm("rvm gemset create #{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/create_gemset.rb
rvm-capistrano-1.5.5 lib/rvm/capistrano/create_gemset.rb
rvm-capistrano-1.5.4 lib/rvm/capistrano/create_gemset.rb
rvm-capistrano-1.5.3 lib/rvm/capistrano/create_gemset.rb
rvm-capistrano-1.5.2 lib/rvm/capistrano/create_gemset.rb
rvm-capistrano-1.5.1 lib/rvm/capistrano/create_gemset.rb
rvm-capistrano-1.5.0 lib/rvm/capistrano/create_gemset.rb
rvm-capistrano-1.5.0.rc1 lib/rvm/capistrano/create_gemset.rb