Module: Dapp::Dimg::Dapp::Command::Ruby2GoCleanup

Included in:
Dapp
Defined in:
lib/dapp/dimg/dapp/command/ruby2go_cleanup.rb

Instance Method Summary collapse

Instance Method Details

#ruby2go_cleanup_command(command, command_options) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/dapp/dimg/dapp/command/ruby2go_cleanup.rb', line 6

def ruby2go_cleanup_command(command, command_options)
  options = {
    command: command,
    command_options: command_options,
    options: { host_docker_config_dir: self.class.host_docker_config_dir }
  }

  ruby2go_cleanup(options).tap do |res|
    raise Error::Build, code: :ruby2go_cleanup_command_failed_unexpected_error, data: { command: command, message: res["error"] } unless res["error"].nil?
  end
end