Class: Pain::Cli
- Inherits:
-
Object
- Object
- Pain::Cli
- Defined in:
- lib/pain/cli.rb
Instance Method Summary collapse
-
#initialize ⇒ Cli
constructor
A new instance of Cli.
- #run! ⇒ Object
Constructor Details
#initialize ⇒ Cli
Returns a new instance of Cli.
9 10 11 12 13 |
# File 'lib/pain/cli.rb', line 9 def initialize = {} @model = Pain::Model.new @option_parser = Options.create(, @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 end |