Module: Dapp::Dimg::Dapp::Command::Push

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

Instance Method Summary collapse

Instance Method Details

#pushObject



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

def push
  #require 'ruby-prof'
  #RubyProf.start
  log_step_with_indent(:stages) { stages_push } if with_stages?
  dimg_import_export_base do |dimg|
    dimg.export!(option_repo, format: push_format(dimg.name))
  end
  # FIXME: rework images cache, then profile
  #result = RubyProf.stop
  #printer = RubyProf::MultiPrinter.new(result)
  #printer.print(path: '/tmp/testdapp.push.profile', profile: 'profile')
end