class Dapp::Dimg::Build::Stage::GABase

Public Instance Methods

empty?() click to toggle source
Calls superclass method Dapp::Dimg::Build::Stage::Base#empty?
# File lib/dapp/dimg/build/stage/ga_base.rb, line 19
def empty?
  dimg.git_artifacts.empty? || super
end
g_a_stage?() click to toggle source
# File lib/dapp/dimg/build/stage/ga_base.rb, line 23
def g_a_stage?
  true
end
prepare_image() click to toggle source
# File lib/dapp/dimg/build/stage/ga_base.rb, line 6
def prepare_image
  super do
    image.add_volumes_from dimg.dapp.gitartifact_container
    image.add_volume "#{dimg.tmp_path('archives')}:#{dimg.container_tmp_path('archives')}:ro"
    image.add_volume "#{dimg.tmp_path('patches')}:#{dimg.container_tmp_path('patches')}:ro"

    dimg.git_artifacts.each do |git_artifact|
      image.add_service_change_label(dimg.dapp.dimgstage_g_a_commit_label(git_artifact.paramshash).to_sym => layer_commit(git_artifact))
      image.add_command git_artifact.send(apply_command_method, self)
    end
  end
end

Protected Instance Methods

apply_command_method() click to toggle source
# File lib/dapp/dimg/build/stage/ga_base.rb, line 37
def apply_command_method
  :apply_patch_command
end
ignore_log_commands?() click to toggle source
# File lib/dapp/dimg/build/stage/ga_base.rb, line 33
def ignore_log_commands?
  true
end
should_not_be_detailed?() click to toggle source
# File lib/dapp/dimg/build/stage/ga_base.rb, line 29
def should_not_be_detailed?
  true
end