Sha256: c6c172232bbd6654e5ecf75e01f36471300e3ef33db7ee9612c90010e982d6be
Contents?: true
Size: 758 Bytes
Versions: 3
Compression:
Stored size: 758 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] = false } opts.on('--branch x', 'Run this branch') do |branch| options[:branch] = branch end end.parse! Runpuppet.run(options)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
runpuppet-0.5.3 | bin/runpuppet |
runpuppet-0.5.2 | bin/runpuppet |
runpuppet-0.5.1 | bin/runpuppet |