bin/runpuppet in runpuppet-0.5.7 vs bin/runpuppet in runpuppet-0.5.8

- old
+ new

@@ -12,18 +12,23 @@ Usage: runpuppet # runs forced puppetrun runpuppet --try # runs only if told by puppet_controller runpuppet --branch feature # run a non-default branch + runpuppet --facts # report facter facts to puppet_controller Options: BANNER opts.on("-h", "--help","Show this.") { puts opts; exit } opts.on('-v', '--version','Show Version'){ puts Runpuppet::VERSION; exit} opts.on('--try','Runs only if selected on puppet_controller'){ options[:try] = true } + opts.on('--facts','Report facts'){ options[:facts] = true } opts.on('--branch x', 'Run this branch') do |branch| options[:branch] = branch end end.parse! - -Runpuppet.run(options) +if options[:facts] + Runpuppet.report_facts +else + Runpuppet.run(options) +end \ No newline at end of file