Sha256: 6b36c570686823553c81e1cb9528d52766316a1372d1911df3a268879c819ce3
Contents?: true
Size: 801 Bytes
Versions: 21
Compression:
Stored size: 801 Bytes
Contents
module Vagrant module Command module StartMixins # This adds the standard `start` command line flags to the given # OptionParser, storing the result in the `options` dictionary. # # @param [OptionParser] parser # @param [Hash] options def build_start_options(parser, options) # Setup the defaults options["provision.enabled"] = true options["provision.types"] = nil # Add the options parser.on("--[no-]provision", "Enable or disable provisioning") do |p| options["provision.enabled"] = p end parser.on("--provision-with x,y,z", Array, "Enable only certain provisioners, by type.") do |list| options["provision.types"] = list end end end end end
Version data entries
21 entries across 21 versions & 6 rubygems