Sha256: ad08d0cdcc13fc1e6e51a04db0adc1c8e742face2f0d0e00ffe4644302131060
Contents?: true
Size: 757 Bytes
Versions: 4
Compression:
Stored size: 757 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'optparse' $LOAD_PATH << "#{File.dirname(__FILE__)}/../lib" require 'runpuppet' options = {} OptionParser.new do |opts| opts.banner = <<BANNER Runpuppet for puppet_controller Usage: runpuppet # runs forced puppetrun runpuppet --try # runs only if told by puppet_controller runpuppet --branch feature # run a non-default branch 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('--branch x', 'Run this branch') do |branch| options[:branch] = branch end end.parse! Runpuppet.run(options)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
runpuppet-0.5.7 | bin/runpuppet |
runpuppet-0.5.6 | bin/runpuppet |
runpuppet-0.5.5 | bin/runpuppet |
runpuppet-0.5.4 | bin/runpuppet |