Sha256: 8f70fad64757327b21e558cd6b71af9d2f38d016de4b873aadb569489af33642
Contents?: true
Size: 548 Bytes
Versions: 3
Compression:
Stored size: 548 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'optparse' $LOAD_PATH << "#{File.dirname(__FILE__)}/../lib" require 'deputy' options = {} OptionParser.new do |opts| opts.banner = <<BANNER Report to the sheriff Usage: deputy System.metric value Options: BANNER opts.on("-h", "--help","Show this.") { puts opts; exit } opts.on('-v', '--version','Show Version'){ puts Deputy::VERSION; exit} end.parse! metric, value = ARGV[0..1] if metric.to_s.empty? puts "Usage instructions: deputy --help" exit end Deputy.send_report metric, value
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
deputy-0.1.3 | bin/deputy |
deputy-0.1.2 | bin/deputy |
deputy-0.1.1 | bin/deputy |