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