instance method
stop
Ruby on Rails 2.6.1
Since v1.9.3 Last seen in v2.11.0Signature
stop(name)
No documentation comment.
Parameters
-
namereq
Source
# File lib/kamal/cli/accessory.rb, line 104
def stop(name)
with_lock do
with_accessory(name) do |accessory, hosts|
on(hosts) do
execute *KAMAL.auditor.record("Stopped #{name} accessory"), verbosity: :debug
execute *accessory.stop, raise_on_non_zero_exit: false
if accessory.running_proxy?
target = capture_with_info(*accessory.container_id_for(container_name: accessory.service_name, only_running: true)).strip
execute *accessory.remove if target
end
end
end
end
end
Defined in lib/kamal/cli/accessory.rb line 104
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Kamal::Cli::Accessory