Class: Pain::Cli

Inherits:
Object
  • Object
show all
Defined in:
lib/pain/cli.rb

Instance Method Summary collapse

Constructor Details

#initializeCli

Returns a new instance of Cli.


9
10
11
12
13
# File 'lib/pain/cli.rb', line 9

def initialize
  @options = {}
  @model = Pain::Model.new
  @option_parser = Options.create(@options, @model)
end

Instance Method Details

#run!Object


15
16
17
18
19
20
21
22
# File 'lib/pain/cli.rb', line 15

def run!
  @option_parser.parse!

  %i[bug_type likelihood impact].each { |input| fill_question(input) }

  puts
  print_report_for options
end