provisioners/docker: style nitpicks
This commit is contained in:
parent
8d6cac959f
commit
ecbd0bfa85
|
@ -39,7 +39,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
def run_container(config)
|
def run_container(config)
|
||||||
raise "Container's cidfile was not provided!" unless config[:cidfile]
|
raise "Container's cidfile was not provided!" if !config[:cidfile]
|
||||||
|
|
||||||
id = "$(cat #{config[:cidfile]})"
|
id = "$(cat #{config[:cidfile]})"
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
def start_container(id)
|
def start_container(id)
|
||||||
unless container_running?(id)
|
if !container_running?(id)
|
||||||
@machine.communicate.sudo("docker start #{id}")
|
@machine.communicate.sudo("docker start #{id}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue