Class: Abak::Flow::Commands::Checkup

Inherits:
Object
  • Object
show all
Defined in:
lib/abak-flow/commands/checkup.rb

Instance Method Summary collapse

Constructor Details

#initializeCheckup

Returns a new instance of Checkup.



8
9
10
11
12
13
# File 'lib/abak-flow/commands/checkup.rb', line 8

def initialize
  manager = Manager.instance

  @configuration = manager.configuration
  @repository = manager.repository
end

Instance Method Details

#process(args, options) ⇒ Object



20
21
22
23
24
# File 'lib/abak-flow/commands/checkup.rb', line 20

def process(args, options)
  Visitor.new(@configuration, @repository,
              command: "checkup", call: :ready?, inspect: :errors)
         .on_fail(exit: 1)
end

#run(args, options) ⇒ Object



15
16
17
18
# File 'lib/abak-flow/commands/checkup.rb', line 15

def run(args, options)
  process(args, options)
  say ANSI.green { I18n.t("commands.checkup.success") }
end