Sha256: 7347700e769d14d3a3746fe6f0350aea11d4a8b477236c9445113bc9c399919c

Contents?: true

Size: 532 Bytes

Versions: 22

Compression:

Stored size: 532 Bytes

Contents

require 'metric_fu'
require 'metric_fu/cli/helper'
require 'metric_fu/cli/parser'
module MetricFu
  module Cli
    class Client

      def initialize
        @helper = MetricFu::Cli::Helper.new
      end
      def shutdown
        @helper.shutdown
      end
      def run(argv=ARGV.dup)
        options =  @helper.process_options(argv)
        mf_debug "Got options #{options.inspect}"
        if options[:run]
          @helper.run(options)
        else
          STDOUT.puts @helper.usage
        end
      end

    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
metric_fu-4.11.3 lib/metric_fu/cli/client.rb
metric_fu-4.11.2 lib/metric_fu/cli/client.rb
metric_fu-4.11.1 lib/metric_fu/cli/client.rb
metric_fu-4.11.0 lib/metric_fu/cli/client.rb
metric_fu-4.10.0 lib/metric_fu/cli/client.rb
metric_fu-4.9.0 lib/metric_fu/cli/client.rb
metric_fu-4.8.0 lib/metric_fu/cli/client.rb
metric_fu-4.7.4 lib/metric_fu/cli/client.rb
metric_fu-4.7.3 lib/metric_fu/cli/client.rb
metric_fu-4.7.2 lib/metric_fu/cli/client.rb
metric_fu-4.7.1 lib/metric_fu/cli/client.rb
metric_fu-4.7.0 lib/metric_fu/cli/client.rb
metric_fu-4.6.0 lib/metric_fu/cli/client.rb
metric_fu-4.5.2 lib/metric_fu/cli/client.rb
metric_fu-4.5.1 lib/metric_fu/cli/client.rb
metric_fu-4.4.4 lib/metric_fu/cli/client.rb
metric_fu-4.4.3 lib/metric_fu/cli/client.rb
metric_fu-4.4.2 lib/metric_fu/cli/client.rb
metric_fu-4.4.1 lib/metric_fu/cli/client.rb
metric_fu-4.4.0 lib/metric_fu/cli/client.rb