Sha256: ee90a1fdc2a4574651668fcdf8d5cdebfbf7c7c73dd36af0be83122af6396525

Contents?: true

Size: 590 Bytes

Versions: 13

Compression:

Stored size: 590 Bytes

Contents

module Capitate::Plugins::Gem
  
  # Install a gem.
  #
  # ==== Options
  # +gems+:: List of gem names, or a single gem
  #
  # ==== Examples (in capistrano task)
  #   gems.install("raspell") 
  #   gems.install([ "raspell", "foo" ])
  #
  def install(gems)
    # If a single object, wrap in array
    gems = [ gems ] unless gems.is_a?(Array)
    
    # Install one at a time because we may need to pass install args (e.g. mysql)
    gems.each do |gem|
      run_via "gem install --no-rdoc --no-ri --no-verbose #{gem}"
    end
  end
  
end

Capistrano.plugin :gems, Capitate::Plugins::Gem

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
calas-capitate-0.3.6 lib/capitate/plugins/gem.rb
capitate-0.2.15 lib/capitate/plugins/gem.rb
capitate-0.2.11 lib/capitate/plugins/gem.rb
capitate-0.2.14 lib/capitate/plugins/gem.rb
capitate-0.2.13 lib/capitate/plugins/gem.rb
capitate-0.3.3 lib/capitate/plugins/gem.rb
capitate-0.3.6 lib/capitate/plugins/gem.rb
capitate-0.2.7 lib/capitate/plugins/gem.rb
capitate-0.3.1 lib/capitate/plugins/gem.rb
capitate-0.3.4 lib/capitate/plugins/gem.rb
capitate-0.3.5 lib/capitate/plugins/gem.rb
capitate-0.2.8 lib/capitate/plugins/gem.rb
capitate-0.3.2 lib/capitate/plugins/gem.rb