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.



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

def initialize
  manager = Manager.instance

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

Instance Method Details

#process(args, options) ⇒ Object



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

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

#run(args, options) ⇒ Object



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

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