No need to replicate Docker default
This commit is contained in:
committed by
GitHub
parent
9b43a6b23b
commit
a9bb8d7376
@@ -27,12 +27,10 @@ class Mrsk::Commands::App < Mrsk::Commands::Base
|
||||
docker :start, service_with_version_and_destination_and_role
|
||||
end
|
||||
|
||||
DEFAULT_STOP_WAIT_TIME = 10
|
||||
|
||||
def stop(version: nil)
|
||||
pipe \
|
||||
version ? container_id_for_version(version) : current_container_id,
|
||||
xargs(docker(:stop, "-t", config.stop_wait_time || DEFAULT_STOP_WAIT_TIME))
|
||||
xargs(config.stop_wait_time ? docker(:stop, "-t", config.stop_wait_time) : docker(:stop))
|
||||
end
|
||||
|
||||
def info
|
||||
|
||||
Reference in New Issue
Block a user