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



6
7
8
# File 'lib/dapp/dimg/dapp/command/mrproper.rb', line 6

def mrproper
  ruby2go_cleanup_command(:reset, ruby2go_cleanup_reset_options_dump)
end

#ruby2go_cleanup_reset_options_dumpObject



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

def ruby2go_cleanup_reset_options_dump
  ruby2go_cleanup_cache_version_options.merge(
    mode: {
      all: !!options[:proper_all],
      dev_mode_cache: !!options[:proper_dev_mode_cache],
      cache_version: proper_cache_version?
    },
    common_options: {
      dry_run: dry_run?
    },
  ).tap do |json|
    break JSON.dump(json)
  end
end