lib/onering/cli/automation.rb in onering-client-0.0.63 vs lib/onering/cli/automation.rb in onering-client-0.0.64
- old
+ new
@@ -16,11 +16,11 @@
when :requests
@opts = ::Trollop::options do
banner <<-EOS
Options:
EOS
- stop_on %w{show status requeue flush}
+ stop_on %w{show status requeue flush purge}
end
case (ssc.downcase.to_sym rescue nil)
when :show
return @requests.show(args[0])
@@ -42,9 +42,12 @@
return Hash[_rejigger_hash.call(out)]
when :flush
return @requests.flush_queue()
+
+ when :purge
+ return @requests.purge()
end
# -----------------------------------------------------------------------------
when :jobs
\ No newline at end of file