Class: Kamal::Commands::Hook
Constant Summary
Constants inherited from Base
Base::DOCKER_HEALTH_STATUS_FORMAT
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#container_id_for, #initialize, #make_directory, #make_directory_for, #remove_directory, #remove_file, #run_over_ssh
Constructor Details
This class inherits a constructor from Kamal::Commands::Base
Instance Method Details
#env(secrets: false, **details) ⇒ Object
6 7 8 9 10 |
# File 'lib/kamal/commands/hook.rb', line 6 def env(secrets: false, **details) (**details).env.tap do |env| env.merge!(config.secrets.to_h) if secrets end end |
#hook_exists?(hook) ⇒ Boolean
12 13 14 |
# File 'lib/kamal/commands/hook.rb', line 12 def hook_exists?(hook) Pathname.new(hook_file(hook)).exist? end |
#run(hook) ⇒ Object
2 3 4 |
# File 'lib/kamal/commands/hook.rb', line 2 def run(hook) [ hook_file(hook) ] end |