Module: Dapp::Project::Command::Stages::CleanupLocal

Included in:
Dapp::Project
Defined in:
lib/dapp/project/command/stages/cleanup_local.rb

Overview

CleanupLocal

Instance Method Summary collapse

Instance Method Details

#stages_cleanup_local(repo) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/dapp/project/command/stages/cleanup_local.rb', line 9

def stages_cleanup_local(repo)
  lock_repo(repo, readonly: true) do
    registry = registry(repo)
    repo_applications = repo_applications_images(registry)
    proper_cache if proper_cache_version?
    build_configs.map(&:_basename).uniq.each do |basename|
      cleanup_project(basename, repo_applications)
    end
  end
end