module RatDeployer::Commands::Docker
This command proxies to the `docker` binary adding remote flags if configuration for remote machine is present
Public Class Methods
perform(cmd, *cmd_flags)
click to toggle source
# File lib/rat_deployer/commands/docker.rb, line 14 def self.perform(cmd, *cmd_flags) flags = [] flags.unshift(Config.remote_machine_flags) if Config.remote cmd = run "docker #{flags.join(' ')} #{cmd} #{cmd_flags.join(' ')}" cmd.fetch(:output) end