module Dapp::Dimg::Dapp::Command::Stages::CleanupLocal

Public Instance Methods

cleanup_local_proper_cache_version_options_dump() click to toggle source
# File lib/dapp/dimg/dapp/command/stages/cleanup_local.rb, line 19
def cleanup_local_proper_cache_version_options_dump
  ruby2go_cleanup_common_project_options.merge(ruby2go_cleanup_cache_version_options).tap do |data|
    break JSON.dump(data)
  end
end
cleanup_local_proper_repo_cache_options_dump() click to toggle source
# File lib/dapp/dimg/dapp/command/stages/cleanup_local.rb, line 25
def cleanup_local_proper_repo_cache_options_dump
  ruby2go_cleanup_common_project_options.merge(ruby2go_cleanup_common_repo_options).tap do |data|
    break JSON.dump(data)
  end
end
stages_cleanup_local() click to toggle source
# File lib/dapp/dimg/dapp/command/stages/cleanup_local.rb, line 7
def stages_cleanup_local
  raise ::Dapp::Error::Command, code: :stages_cleanup_required_option unless stages_cleanup_option?

  if proper_cache_version?
    ruby2go_cleanup_command(:sync, cleanup_local_proper_cache_version_options_dump)
  end

  if proper_repo_cache?
    ruby2go_cleanup_command(:sync, cleanup_local_proper_repo_cache_options_dump)
  end
end