Class: Kamal::Cli::Lock
Constant Summary
Constants inherited from Base
Base::AUTOMATIC_DEPLOY_LOCK_MESSAGE, Base::VERBOSITY
Instance Method Summary collapse
Methods inherited from Base
dynamic_command_class, exit_on_failure?, #initialize
Constructor Details
This class inherits a constructor from Kamal::Cli::Base
Instance Method Details
#acquire ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/kamal/cli/lock.rb', line 11 def acquire ensure_run_directory raise_if_locked do execute_lock_acquire([:message]) say "Acquired the deploy lock" end end |
#release ⇒ Object
21 22 23 24 25 26 |
# File 'lib/kamal/cli/lock.rb', line 21 def release handle_missing_lock do execute_lock_release say "Released the deploy lock" end end |
#status ⇒ Object
3 4 5 6 7 |
# File 'lib/kamal/cli/lock.rb', line 3 def status handle_missing_lock do puts capture_lock_status end end |