Module: Vagrant::Command::StartMixins
Instance Method Summary collapse
-
#build_start_options(parser, options) ⇒ Object
This adds the standard
start
command line flags to the given OptionParser, storing the result in theoptions
dictionary.
Instance Method Details
#build_start_options(parser, options) ⇒ Object
This adds the standard start
command line flags to the given
OptionParser, storing the result in the options
dictionary.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/vagrant/command/start_mixins.rb', line 9 def (parser, ) # Setup the defaults ["provision.enabled"] = true ["provision.types"] = nil # Add the options parser.on("--[no-]provision", "Enable or disable provisioning") do |p| ["provision.enabled"] = p end parser.on("--provision-with x,y,z", Array, "Enable only certain provisioners, by type.") do |list| ["provision.types"] = list end end |