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
#push ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/dapp/dimg/dapp/command/push.rb', line 6 def push #require 'ruby-prof' #RubyProf.start repo = option_repo validate_repo_name!(repo) log_step_with_indent(:stages) { stages_push } if with_stages? build_configs.each do |config| log_dimg_name_with_indent(config) do Dimg.new(config: config, dapp: self, ignore_git_fetch: true, should_be_built: true).tap do |dimg| dimg.export!(repo, format: push_format(config._name)) end end 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 |