Class: RocketFuel::Precheck::CommandLineResultPresenter
- Inherits:
-
Object
- Object
- RocketFuel::Precheck::CommandLineResultPresenter
- Includes:
- Thor::Base
- Defined in:
- lib/rocket_fuel/precheck/command_line_result_presenter.rb
Constant Summary collapse
- SUCCESS_ICON =
["\u2713", '[ok] ']
- FAILURE_ICON =
["\u00D7", '[failed]']
Instance Method Summary collapse
-
#initialize(result) ⇒ CommandLineResultPresenter
constructor
A new instance of CommandLineResultPresenter.
- #present ⇒ Object
Constructor Details
#initialize(result) ⇒ CommandLineResultPresenter
Returns a new instance of CommandLineResultPresenter.
11 12 13 |
# File 'lib/rocket_fuel/precheck/command_line_result_presenter.rb', line 11 def initialize(result) @result = result end |
Instance Method Details
#present ⇒ Object
15 16 17 18 |
# File 'lib/rocket_fuel/precheck/command_line_result_presenter.rb', line 15 def present print_wrapped(set_color([icon.render, @result.].join(" "), color), :indent => 2) end |