Class: RocketFuel::Precheck::CommandLineResultPresenter

Inherits:
Object
  • Object
show all
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

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

#presentObject



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.message].join(" "), color),
    :indent => 2)
end