lib/eac_docker/container.rb in eac_docker-0.4.1 vs lib/eac_docker/container.rb in eac_docker-0.4.2

- old
+ new

@@ -32,20 +32,21 @@ ensure stop end end - def volume(left_part, right_part = null) + def volume(left_part, right_part = nil) immutable_volume(right_part.if_present(left_part) { |v| "#{left_part}:#{v}" }) end def run_command ::EacDocker::Executables.docker.command('run', *run_command_args) end def run_command_args - run_command_boolean_args + run_command_capabilities_args + run_command_envs_args + - run_command_volumes_args + [image.provide.id] + command_args + %w[boolean capabilities envs volumes] + .inject([]) { |a, e| a + send("run_command_#{e}_args") } + + [image.provide.id] + command_args end def stop ::EacDocker::Executables.docker.command('stop', id).execute! end