Class: MetricFu::Cli::Client
- Inherits:
-
Object
- Object
- MetricFu::Cli::Client
- Defined in:
- lib/metric_fu/cli/client.rb
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #run(argv = ARGV.dup) ⇒ Object
- #shutdown ⇒ Object
Constructor Details
Instance Method Details
#run(argv = ARGV.dup) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/metric_fu/cli/client.rb', line 15 def run(argv = ARGV.dup) = @helper.(argv) mf_debug "Got options #{.inspect}" if [:run] @helper.run() else STDOUT.puts @helper.usage end end |
#shutdown ⇒ Object
11 12 13 |
# File 'lib/metric_fu/cli/client.rb', line 11 def shutdown @helper.shutdown end |