Sha256: 479d79761701f92d07a9a0d90984eef8ff249b567069506c8718c897b89cbc56

Contents?: true

Size: 577 Bytes

Versions: 2

Compression:

Stored size: 577 Bytes

Contents

require 'thor'
require 'redu/analyzer'

module Redu
  class CLI < Thor
    default_task("analyze")

    desc "analyze", "Analyze a redis server on a particular host"
    method_option :host, :type => :string, :aliases => '-h',:default => 'localhost'
    method_option :port, :type => :numeric, :aliases => '-p', :default => 6379
    method_option :delimiter, :type => :string, :aliases => '-d', :default => '|'
    method_option :worst_offender_count, :type => :string, :aliases => '-w', :default => 25
    def analyze
      Redu::Analyzer.new(options).start
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redu-0.0.4 lib/redu/cli.rb
redu-0.0.3 lib/redu/cli.rb