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

#cleanup_local_proper_cache_version_options_dumpObject



19
20
21
22
23
# File 'lib/dapp/dimg/dapp/command/stages/cleanup_local.rb', line 19

def cleanup_local_proper_cache_version_options_dump
  ruby2go_cleanup_common_project_options.merge(ruby2go_cleanup_cache_version_options).tap do |data|
    break JSON.dump(data)
  end
end

#cleanup_local_proper_repo_cache_options_dumpObject



25
26
27
28
29
# File 'lib/dapp/dimg/dapp/command/stages/cleanup_local.rb', line 25

def cleanup_local_proper_repo_cache_options_dump
  ruby2go_cleanup_common_project_options.merge(ruby2go_cleanup_common_repo_options).tap do |data|
    break JSON.dump(data)
  end
end

#stages_cleanup_localObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/dapp/dimg/dapp/command/stages/cleanup_local.rb', line 7

def stages_cleanup_local
  raise ::Dapp::Error::Command, code: :stages_cleanup_required_option unless stages_cleanup_option?

  if proper_cache_version?
    ruby2go_cleanup_command(:sync, cleanup_local_proper_cache_version_options_dump)
  end

  if proper_repo_cache?
    ruby2go_cleanup_command(:sync, cleanup_local_proper_repo_cache_options_dump)
  end
end