lib/r10k/cli/deploy.rb in r10k-3.7.0 vs lib/r10k/cli/deploy.rb in r10k-3.8.0

- old
+ new

@@ -19,21 +19,23 @@ description <<-DESCRIPTION `r10k deploy` implements the Git branch to Puppet environment workflow (https://puppet.com/docs/puppet/latest/environments_about.html). DESCRIPTION - required nil, :cachedir, 'Specify a cachedir, overriding the value in config' + option nil, :cachedir, 'Specify a cachedir, overriding the value in config', argument: :required flag nil, :'no-force', 'Prevent the overwriting of local module modifications' flag nil, :'generate-types', 'Run `puppet generate types` after updating an environment' option nil, :'puppet-path', 'Path to puppet executable', argument: :required do |value, cmd| unless File.executable? value $stderr.puts "The specified puppet executable #{value} is not executable." puts cmd.help exit 1 end end option nil, :'puppet-conf', 'Path to puppet.conf', argument: :required + option nil, :'private-key', 'Path to SSH key to use when cloning. Only valid with rugged provider', argument: :required + option nil, :'oauth-token', 'Path to OAuth token to use when cloning. Only valid with rugged provider', argument: :required run do |opts, args, cmd| puts cmd.help(:verbose => opts[:verbose]) exit 0 end @@ -60,11 +62,12 @@ on modules specified in the Puppetfile and an update will be automatically scheduled. On subsequent deployments, Puppetfile deployment will default to off. DESCRIPTION flag :p, :puppetfile, 'Deploy modules from a puppetfile' - required nil, :'default-branch-override', 'Specify a branchname to override the default branch in the puppetfile' + option nil, :'default-branch-override', 'Specify a branchname to override the default branch in the puppetfile', + argument: :required runner R10K::Action::CriRunner.wrap(R10K::Action::Deploy::Environment) end end end @@ -80,11 +83,11 @@ `r10k deploy module` Deploys and updates modules inside of Puppet environments. It will load the Puppetfile configurations out of all environments, and will try to deploy the given module names in all environments. DESCRIPTION - required :e, :environment, 'Update the modules in the given environment' + option :e, :environment, 'Update the modules in the given environment', argument: :required runner R10K::Action::CriRunner.wrap(R10K::Action::Deploy::Module) end end end @@ -98,10 +101,11 @@ summary 'Display environments and modules in the deployment' flag :p, :puppetfile, 'Display Puppetfile modules' flag nil, :detail, 'Display detailed information' flag nil, :fetch, 'Update available environment lists from all remote sources' - required nil, :format, 'Display output in a specific format. Valid values: json, yaml. Default: yaml' + option nil, :format, 'Display output in a specific format. Valid values: json, yaml. Default: yaml', + argument: :required runner R10K::Action::CriRunner.wrap(R10K::Action::Deploy::Display) end end end