Module: Dapp::Dimg::Dapp::Command::Mrproper
- Included in:
- Dapp
- Defined in:
- lib/dapp/dimg/dapp/command/mrproper.rb
Instance Method Summary collapse
-
#mrproper ⇒ Object
rubocop:disable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity.
Instance Method Details
#mrproper ⇒ Object
rubocop:disable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/dapp/dimg/dapp/command/mrproper.rb', line 7 def mrproper log_step_with_indent(:mrproper) do raise Error::Command, code: :mrproper_required_option unless proper_all? || proper_dev_mode_cache? || proper_cache_version? dapp_dangling_images_flush if proper_all? flush_by_label('dapp') remove_build_dir elsif proper_dev_mode_cache? flush_by_label('dapp-dev-mode') elsif proper_cache_version? log_proper_cache do proper_cache_images = proper_cache_all_images remove_images(dapp_images_by_label('dapp').select { |id| !proper_cache_images.include?(id) }.map(&:strip)) end end end end |