bin/deputy in deputy-0.1.7 vs bin/deputy in deputy-0.1.8
- old
+ new
@@ -13,13 +13,18 @@
deputy System.metric value
deputy [OPTION]
Options:
BANNER
+
opts.on("-h", "--help","Show this.") { puts opts; exit }
opts.on('-v', '--version','Show Version'){ puts Deputy::VERSION; exit}
opts.on('--install-cron','Install crontask'){ Deputy.install_cron; exit}
- opts.on('--run-plugins','Run all plugins for this minute (belongs into crontask)'){ Deputy.run_plugins; exit}
+ opts.on('--run-plugins','Run all plugins for this minute (belongs into crontask)') do
+ puts Time.now.strftime("%Y-%m-%d %H:%M:%S")
+ Deputy.run_plugins
+ exit
+ end
end.parse!
metric, value = ARGV[0..1]
if metric.to_s.empty?
puts "Usage instructions: deputy --help"
\ No newline at end of file