module Dapp::Dimg::Dapp::Command::Stages::CleanupRepo

Public Instance Methods

cleanup_repo_proper_cache_version_options_dump() click to toggle source
# File lib/dapp/dimg/dapp/command/stages/cleanup_repo.rb, line 20
def cleanup_repo_proper_cache_version_options_dump
  ruby2go_cleanup_common_repo_options.merge(ruby2go_cleanup_cache_version_options).merge(
    mode: {
      sync_repo: true,
      only_cache_version: true
   }
  ).tap do |data|
    break JSON.dump(data)
  end
end
cleanup_repo_proper_repo_cache_options() click to toggle source
# File lib/dapp/dimg/dapp/command/stages/cleanup_repo.rb, line 31
def cleanup_repo_proper_repo_cache_options
  ruby2go_cleanup_common_repo_options.merge(
    mode: {
      sync_repo: true
    }
  ).tap do |data|
    break JSON.dump(data)
  end
end
repo_dimgstages_cleanup() click to toggle source
# File lib/dapp/dimg/dapp/command/stages/cleanup_repo.rb, line 16
def repo_dimgstages_cleanup
  ruby2go_cleanup_command(:sync, cleanup_repo_proper_repo_cache_options)
end
stages_cleanup_repo() click to toggle source
# File lib/dapp/dimg/dapp/command/stages/cleanup_repo.rb, line 7
def stages_cleanup_repo
  lock_repo(repo = option_repo) do
    raise ::Dapp::Error::Command, code: :stages_cleanup_required_option unless stages_cleanup_option?

    ruby2go_cleanup_command(:sync, cleanup_repo_proper_cache_version_options_dump) if proper_cache_version?
    repo_dimgstages_cleanup if proper_repo_cache?
  end
end