Class: Mrsk::Commands::Hook
Constant Summary
Constants inherited from Base
Base::DOCKER_HEALTH_LOG_FORMAT, Base::DOCKER_HEALTH_STATUS_FORMAT
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#container_id_for, #initialize, #run_over_ssh
Constructor Details
This class inherits a constructor from Mrsk::Commands::Base
Instance Method Details
#hook_exists?(hook) ⇒ Boolean
6 7 8 |
# File 'lib/mrsk/commands/hook.rb', line 6 def hook_exists?(hook) Pathname.new(hook_file(hook)).exist? end |
#run(hook, **details) ⇒ Object
2 3 4 |
# File 'lib/mrsk/commands/hook.rb', line 2 def run(hook, **details) [ hook_file(hook), env: (**details).env ] end |