Class: Openbox::Command
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Openbox::Command
- Defined in:
- lib/openbox/command.rb
Overview
The base command of openbox
Direct Known Subclasses
Openbox::Commands::Console, Openbox::Commands::Migrate, Openbox::Commands::Rake, Openbox::Commands::Seed, Openbox::Commands::Server, Openbox::Commands::Sidekiq
Instance Method Summary collapse
-
#before_execute ⇒ Object
Before execute command.
-
#execute ⇒ Object
Execute command.
Instance Method Details
#before_execute ⇒ Object
Before execute command
14 15 16 17 18 19 20 |
# File 'lib/openbox/command.rb', line 14 def before_execute # TODO: Add AWS KMS, Vault support return if ENV['SWARM_SECRETS'].nil? paths = ENV['SWARM_SECRETS'].split(',').map { |name| "/run/secrets/#{name}" } Dotenv.load(*paths) end |
#execute ⇒ Object
Execute command
25 26 27 |
# File 'lib/openbox/command.rb', line 25 def execute raise NotImplementedError end |