Sha256: 9ba9e71ac8fa48e8544170e64927bf8ffcc2fdedfb99aac249487e7cc60e4568
Contents?: true
Size: 683 Bytes
Versions: 3
Compression:
Stored size: 683 Bytes
Contents
require 'puppet-ghostbuster/optparser' class PuppetGhostbuster::Bin def initialize(args) @args = args end def run opts = PuppetGhostbuster::OptParser.build begin opts.parse!(@args) rescue OptionParser::InvalidOption puts "puppet-ghostbuster: #{$!.message}" puts "puppet-ghostbuster: try 'puppet-ghostbuster --help' for more information" return 1 end if PuppetGhostbuster.configuration.display_version puts "puppet-ghostbuster #{PuppetGhostbuster::VERSION}" return 0 end if @args[0].nil? PuppetGhostbuster.new().run else PuppetGhostbuster.new(@args[0]).run end exit 0 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puppet-ghostbuster-0.1.2 | lib/puppet-ghostbuster/bin.rb |
puppet-ghostbuster-0.1.1 | lib/puppet-ghostbuster/bin.rb |
puppet-ghostbuster-0.1.0 | lib/puppet-ghostbuster/bin.rb |