Sha256: f871330dc8e95fc46356e4379a3e19e43a4224fc9cd92e990ec16c09fee87a98

Contents?: true

Size: 511 Bytes

Versions: 10

Compression:

Stored size: 511 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
        options =  @helper.process_options
        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

10 entries across 10 versions & 1 rubygems

Version Path
metric_fu-4.2.1 lib/metric_fu/cli/client.rb
metric_fu-4.2.0 lib/metric_fu/cli/client.rb
metric_fu-4.1.3 lib/metric_fu/cli/client.rb
metric_fu-4.1.2 lib/metric_fu/cli/client.rb
metric_fu-4.1.1 lib/metric_fu/cli/client.rb
metric_fu-4.1.0 lib/metric_fu/cli/client.rb
metric_fu-4.0.0 lib/metric_fu/cli/client.rb
metric_fu-3.0.1 lib/metric_fu/cli/client.rb
metric_fu-3.0.0 lib/metric_fu/cli/client.rb
metric_fu-2.1.4.pre5 lib/metric_fu/cli/client.rb