Module: Dapp::Dimg::Dapp::Command::FlushLocal

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

Instance Method Summary collapse

Instance Method Details

#flush_localObject



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

def flush_local
  ruby2go_cleanup_command(:flush, ruby2go_cleanup_flush_local_options)
end

#ruby2go_cleanup_flush_local_optionsObject



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

def ruby2go_cleanup_flush_local_options
  {
    common_project_options: {
      project_name: name,
      common_options: {
        dry_run: dry_run?,
        force: true
      }
    },
    with_dimgs: true,
    with_stages: with_stages?,
    only_repo: false,
  }.tap do |json|
    break JSON.dump(json)
  end
end