Class: Berta::CLI
- Inherits:
-
Thor
- Object
- Thor
- Berta::CLI
- Defined in:
- lib/berta/cli.rb
Overview
CLI for berta
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.safe_fetch(keys) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/berta/cli.rb', line 7 def self.safe_fetch(keys) current = Berta::Settings keys.each do |key| current = current[key] break unless current end current end |
Instance Method Details
#cleanup ⇒ Object
61 62 63 64 65 |
# File 'lib/berta/cli.rb', line 61 def cleanup initialize_configuration() initialize_logger() Berta::CommandExecutor.cleanup end |