Sha256: c247dc220e467ab36f7d0f0018b1027916fe17a9e686e8e4440be228e1d9121a

Contents?: true

Size: 630 Bytes

Versions: 1

Compression:

Stored size: 630 Bytes

Contents

# coding: utf-8

module Abak::Flow
  module Commands
    class Checkup

      def initialize
        manager = Manager.instance

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

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

      def process(args, options)
        Visitor.new(@configuration, @repository,
                    command: "checkup", call: :ready?, inspect: :errors)
               .on_fail(exit: 1)
      end
    end # class Checkup
  end # module Commands
end # module Abak::Flow

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
abak-flow-1.0.8 lib/abak-flow/commands/checkup.rb