Module: Dapp::Dimg::Dapp::Command::Ruby2GoCleanup
- Included in:
- Dapp
- Defined in:
- lib/dapp/dimg/dapp/command/ruby2go_cleanup.rb
Instance Method Summary collapse
- #ruby2go_cleanup_cache_version_options ⇒ Object
- #ruby2go_cleanup_command(command, command_options, **options) ⇒ Object
- #ruby2go_cleanup_common_project_options ⇒ Object
- #ruby2go_cleanup_common_repo_options ⇒ Object
Instance Method Details
#ruby2go_cleanup_cache_version_options ⇒ Object
29 30 31 32 33 |
# File 'lib/dapp/dimg/dapp/command/ruby2go_cleanup.rb', line 29 def { 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: command, command_options: , options: { host_docker_config_dir: self.class.host_docker_config_dir }.merge() } ruby2go_cleanup().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_options ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/dapp/dimg/dapp/command/ruby2go_cleanup.rb', line 18 def { common_project_options: { project_name: name, common_options: { dry_run: dry_run?, } }, } end |
#ruby2go_cleanup_common_repo_options ⇒ Object
35 36 37 38 39 40 41 42 43 |
# File 'lib/dapp/dimg/dapp/command/ruby2go_cleanup.rb', line 35 def { common_repo_options: { repository: option_repo, dimgs_names: nameless_dimg? ? [] : dimgs_names, dry_run: dry_run? } } end |