module DockerCore::Base::Command::ClassMethod

Public Instance Methods

capture_command(*arguments, environment: {}, bind: {}, throw: false, wait: 0, strip: true, echo: false) click to toggle source

@param [Array] arguments @param [Boolean] throw @param [Numeric] wait @param [Boolean] strip @param [Boolean] echo

# File lib/docker_core.rb, line 35
def capture_command(*arguments, environment: {}, bind: {}, throw: false, wait: 0, strip: true, echo: false)
  bind[Dir.pwd] = self.work_folder
  Swarm.capture_command(self.from_image, *arguments, environment: environment, bind: bind, throw: throw, wait: wait, strip: strip, echo: echo)
end
from_image() click to toggle source

@return [String]

# File lib/docker_core.rb, line 21
def from_image
  Error.no_method(__method__)
end
run_command(*arguments, environment: {}, bind: {}, throw: true, wait: 0, echo: true) click to toggle source

@param [Array] arguments @param [Boolean] throw @param [Numeric] wait @param [Boolean] echo

# File lib/docker_core.rb, line 44
def run_command(*arguments, environment: {}, bind: {}, throw: true, wait: 0, echo: true)
  bind[Dir.pwd] = self.work_folder
  Swarm.run_command(self.from_image, *arguments, environment: environment, bind: bind, throw: throw, wait: wait, echo: echo)
end
work_folder() click to toggle source

@return [String]

# File lib/docker_core.rb, line 26
def work_folder
  Error.no_method(__method__)
end