Sha256: 68f101a8bb5f964030a75adc15af0da089546cf56e4baed1d02cbafb8153df45

Contents?: true

Size: 590 Bytes

Versions: 5

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)
  #   gemc.install("raspell") 
  #   gemc.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

5 entries across 5 versions & 1 rubygems

Version Path
capitate-0.2.1 lib/capitate/plugins/gem.rb
capitate-0.2.3 lib/capitate/plugins/gem.rb
capitate-0.2.2 lib/capitate/plugins/gem.rb
capitate-0.2.6 lib/capitate/plugins/gem.rb
capitate-0.2.5 lib/capitate/plugins/gem.rb