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