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_cache_version_optionsObject



29
30
31
32
33
# File 'lib/dapp/dimg/dapp/command/ruby2go_cleanup.rb', line 29

def ruby2go_cleanup_cache_version_options
  {
    cache_version: ::Dapp::BUILD_CACHE_VERSION.to_s
  }
end

#ruby2go_cleanup_command(command, command_options, **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)
  options = {
    command: command,
    command_options: command_options,
    options: { host_docker_config_dir: self.class.host_docker_config_dir }.merge(options)
  }

  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

#ruby2go_cleanup_common_project_optionsObject



18
19
20
21
22
23
24
25
26
27
# File 'lib/dapp/dimg/dapp/command/ruby2go_cleanup.rb', line 18

def ruby2go_cleanup_common_project_options
  {
    common_project_options: {
      project_name: name,
      common_options: {
        dry_run: dry_run?,
      }
    },
  }
end

#ruby2go_cleanup_common_repo_optionsObject



35
36
37
38
39
40
41
42
43
# File 'lib/dapp/dimg/dapp/command/ruby2go_cleanup.rb', line 35

def ruby2go_cleanup_common_repo_options
  {
    common_repo_options: {
      repository: option_repo,
      dimgs_names: nameless_dimg? ? [] : dimgs_names,
      dry_run: dry_run?
    }
  }
end