Module: Dapp::Project::Command::Stages::Pull

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

Overview

Pull

Instance Method Summary collapse

Instance Method Details

#pull_all_stages?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/dapp/project/command/stages/pull.rb', line 20

def pull_all_stages?
  !!cli_options[:pull_all_stages]
end

#stages_pull(repo) ⇒ Object



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

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