Module: Dapp::Dimg::Dapp::Command::Stages::Pull

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

Instance Method Summary collapse

Instance Method Details

#pull_all_stages?Boolean

Returns:

  • (Boolean)


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

def pull_all_stages?
  !!options[:pull_all_stages]
end

#stages_pullObject



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

def stages_pull
  repo = option_repo
  validate_repo_name!(repo)
  build_configs.each do |config|
    log_dimg_name_with_indent(config) do
      Dimg.new(config: config, dapp: self, ignore_git_fetch: true).tap do |dimg|
        dimg.import_stages!(repo, format: '%{repo}:dimgstage-%{signature}')
      end
    end
  end
end