Class: AwsAlertMonitor::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-alert-monitor/cli.rb

Instance Method Summary collapse

Constructor Details

#initializeCLI

Returns a new instance of CLI.



5
6
7
# File 'lib/aws-alert-monitor/cli.rb', line 5

def initialize
  @options = parse_options
end

Instance Method Details

#startObject



9
10
11
12
# File 'lib/aws-alert-monitor/cli.rb', line 9

def start
  parser = AwsAlertMonitor::Parser.new :log_level => @options[:log_level]
  parser.run
end