Module: Dapp::Project::Command::Stages::FlushLocal

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

Overview

FlushLocal

Instance Method Summary collapse

Instance Method Details

#stages_flush_localObject



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

def stages_flush_local
  build_configs.map(&:_basename).uniq.each do |basename|
    lock("#{basename}.images") do
      log_step_with_indent(basename) do
        project_containers_flush(basename)
        project_dangling_images_flush(basename)
        remove_images(project_images(basename).lines.map(&:strip))
      end
    end
  end
end