lib/onering/cli/reporter.rb in onering-client-0.0.76 vs lib/onering/cli/reporter.rb in onering-client-0.0.77
- old
+ new
@@ -12,17 +12,19 @@
Usage:
onering [global] report [options]
Options:
EOS
- opt :id, "Override the autodetected Hardware ID for this node", :short => '-I', :type => :string
- opt :fields, "Set the named FIELD to equal VALUE in the format FIELD=VALUE. Can be specified multiple times", :short => '-o', :type => :string, :multi => true
- opt :save, "Save the report output to the configured Onering server"
+ opt :id, "Override the autodetected Hardware ID for this node", :short => '-I', :type => :string
+ opt :fields, "Set the named FIELD to equal VALUE in the format FIELD=VALUE. Can be specified multiple times", :short => '-o', :type => :string, :multi => true
+ opt :save, "Save the report output to the configured Onering server"
+ opt :timeout, "The maximum amount of time to wait for a report to be generated", :type => :integer
end
# initialize report generator with user options
Onering::Reporter.setup({
- :id => @opts[:id]
+ :id => @opts[:id],
+ :timeout => @opts[:timeout]
}.compact)
end
def self.run(args)
report = Onering::Reporter.report().stringify_keys()
\ No newline at end of file