Skip to content

Commit

Permalink
FEATURE: add support for gem source in plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Dec 30, 2013
1 parent 2c04f61 commit 95cbcc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/plugin/instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ def gem(name, version, opts = {})
spec_path = gems_path + "/specifications"
spec_file = spec_path + "/#{name}-#{version}.gemspec"
unless File.exists? spec_file
command = "gem install #{name} -v #{version} -i #{gems_path} --no-rdoc --no-ri"
command = "gem install #{name} -v #{version} -i #{gems_path} --no-document"
if opts[:source]
command << " --source #{opts[:source]}"
end
puts command
puts `#{command}`
end
Expand Down

0 comments on commit 95cbcc1

Please sign in to comment.