module HealthCheckCli::Commands

Public Instance Methods

find(cmd, app) click to toggle source
# File lib/health_check_cli/commands.rb, line 18
def find(cmd, app)
  case cmd
    when 'help' then Help.new(app)
    when 'exit' then Exit.new(app)
    when 'status' then Status.new(app)
    when 'init' then Init.new(app)
    when 'show' then Show.new(app)
    else Command.new(app)
  end
end