lib/r10k/cli/deploy.rb in r10k-3.1.1 vs lib/r10k/cli/deploy.rb in r10k-3.2.0
- old
+ new
@@ -21,9 +21,17 @@
(https://puppetlabs.com/blog/git-workflow-and-puppet-environments/).
DESCRIPTION
required nil, :cachedir, 'Specify a cachedir, overriding the value in config'
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
run do |opts, args, cmd|
puts cmd.help(:verbose => opts[:verbose])
exit 0
end