Class: Openbox::Command

Inherits:
Thor::Group
  • Object
show all
Defined in:
lib/openbox/command.rb

Overview

The base command of openbox

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#before_executeObject

Before execute command

Since:

  • 0.5.0



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

#executeObject

Execute command

Raises:

  • (NotImplementedError)

Since:

  • 0.1.0



25
26
27
# File 'lib/openbox/command.rb', line 25

def execute
  raise NotImplementedError
end