Module: Dapp::Dimg::Dapp::Command::Stages::CleanupLocal
- Included in:
- Dapp
- Defined in:
- lib/dapp/dimg/dapp/command/stages/cleanup_local.rb
Instance Method Summary collapse
Instance Method Details
#stages_cleanup_local ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/dapp/dimg/dapp/command/stages/cleanup_local.rb', line 7 def stages_cleanup_local lock_repo(option_repo, readonly: true) do raise ::Dapp::Error::Command, code: :stages_cleanup_required_option unless stages_cleanup_option? proper_cache if proper_cache_version? stages_cleanup_by_repo if proper_repo_cache? proper_git_commit if proper_git_commit? dapp_containers_flush_by_label("dapp=#{name}") dapp_dangling_images_flush_by_label("dapp=#{name}") end end |