fix the comments for the dependency installer options

Fixes #2356
This commit is contained in:
Pere Urbon-Bayes 2015-01-19 16:07:41 +01:00 committed by Jordan Sissel
parent 6ca6189c74
commit 6b3877a708

View file

@ -57,8 +57,15 @@ class LogStash::PluginManager::Install < Clamp::Command
options = {}
options[:document] = []
if LogStash::Environment.test?
# More info on what do this options means
# https://github.com/rubygems/rubygems/blob/master/lib/rubygems/dependency_installer.rb#L56
# This two options are the ones used to ask the rubygems to install
# all development dependencies as you can do from the command line
# tool.
#
# Comments from the command line tool.
# --development - Install additional development dependencies
#
# Links: https://github.com/rubygems/rubygems/blob/master/lib/rubygems/install_update_options.rb#L150
# http://guides.rubygems.org/command-reference/#gem-install
options[:dev_shallow] = true
options[:development] = true
end