Class: Ocak::Commands::Status
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Ocak::Commands::Status
- Defined in:
- lib/ocak/commands/status.rb
Instance Method Summary collapse
Instance Method Details
#call(**options) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/ocak/commands/status.rb', line 17 def call(**) config = Config.load if [:report] show_reports(config) else show_default_status(config) end rescue Config::ConfigNotFound => e warn "Error: #{e.}" exit 1 end |