Stylistic changes for GH-1461
This commit is contained in:
parent
3fe7809eea
commit
408eee746d
|
@ -22,7 +22,7 @@ module VagrantPlugins
|
||||||
# Install the gem
|
# Install the gem
|
||||||
plugin_name_label = plugin_name
|
plugin_name_label = plugin_name
|
||||||
plugin_name_label += ' --prerelease' if prerelease
|
plugin_name_label += ' --prerelease' if prerelease
|
||||||
plugin_name_label += " --version \"#{version}\"" if version
|
plugin_name_label += " --version '#{version}'" if version
|
||||||
env[:ui].info(I18n.t("vagrant.commands.plugin.installing",
|
env[:ui].info(I18n.t("vagrant.commands.plugin.installing",
|
||||||
:name => plugin_name_label))
|
:name => plugin_name_label))
|
||||||
installed_gems = env[:gem_helper].with_environment do
|
installed_gems = env[:gem_helper].with_environment do
|
||||||
|
|
|
@ -17,19 +17,22 @@ module VagrantPlugins
|
||||||
"The name of the entry point file for loading the plugin.") do |entry_point|
|
"The name of the entry point file for loading the plugin.") do |entry_point|
|
||||||
options[:entry_point] = entry_point
|
options[:entry_point] = entry_point
|
||||||
end
|
end
|
||||||
|
|
||||||
o.on("--plugin-prerelease",
|
o.on("--plugin-prerelease",
|
||||||
"Install a prereleased version of the plugin") do |plugin_prerelease|
|
"Allow prerelease versions of this plugin.") do |plugin_prerelease|
|
||||||
options[:plugin_prerelease] = plugin_prerelease
|
options[:plugin_prerelease] = plugin_prerelease
|
||||||
end
|
end
|
||||||
|
|
||||||
|
o.on("--plugin-source PLUGIN_SOURCE", String,
|
||||||
|
"Add a RubyGems repository source") do |plugin_source|
|
||||||
|
options[:plugin_sources] ||= []
|
||||||
|
options[:plugin_sources] << plugin_source
|
||||||
|
end
|
||||||
|
|
||||||
o.on("--plugin-version PLUGIN_VERSION", String,
|
o.on("--plugin-version PLUGIN_VERSION", String,
|
||||||
"Install a specific version of the plugin") do |plugin_version|
|
"Install a specific version of the plugin") do |plugin_version|
|
||||||
options[:plugin_version] = plugin_version
|
options[:plugin_version] = plugin_version
|
||||||
end
|
end
|
||||||
o.on("--plugin-source PLUGIN_SOURCE", String,
|
|
||||||
"Add a ruby gem repository") do |plugin_source|
|
|
||||||
options[:plugin_sources] = [] if !options[:plugin_sources]
|
|
||||||
options[:plugin_sources] << plugin_source
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Parse the options
|
# Parse the options
|
||||||
|
|
Loading…
Reference in New Issue