Module: Dapp::Dimg::Dapp::Command::Mrproper

Included in:
Dapp
Defined in:
lib/dapp/dimg/dapp/command/mrproper.rb

Instance Method Summary collapse

Instance Method Details

#mrproperObject

rubocop:disable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/dapp/dimg/dapp/command/mrproper.rb', line 7

def mrproper
  log_step_with_indent(:mrproper) do
    raise ::Dapp::Error::Command, code: :mrproper_required_option if mrproper_command_without_any_option?

    if proper_all?
      proper_all
    elsif proper_dev_mode_cache?
      proper_dev_mode_cache
    elsif proper_cache_version?
      proper_cache_version
    end

    dapp_dangling_images_flush_by_label('dapp')
    dapp_tagless_images_flush
  end
end