Method: Readis.command_runner
- Defined in:
- lib/readis.rb
.command_runner(name) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/readis.rb', line 39 def self.command_runner(name) case name when "inspect" Readis::Inspect.new when "monitor" Readis::Monitor.new else puts "Usage: readis <command> [options]" puts "Usage: readis help <command>" puts "Available commands: inspect, monitor" exit end end |