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)
end

#ruby2go_cleanup_reset_optionsObject



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

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