Class: Dapp::Dimg::Config::Directive::GitArtifactLocal::Export::StageDependencies

Inherits:
Base show all
Defined in:
lib/dapp/dimg/config/directive/git_artifact_local.rb

Constant Summary collapse

STAGES =
[:install, :setup, :before_setup, :build_artifact].freeze

Instance Method Summary collapse

Constructor Details

#initialize(&blk) ⇒ StageDependencies

Returns a new instance of StageDependencies.



34
35
36
# File 'lib/dapp/dimg/config/directive/git_artifact_local.rb', line 34

def initialize(&blk)
  instance_eval(&blk) if block_given?
end

Instance Method Details

#to_hObject



38
39
40
# File 'lib/dapp/dimg/config/directive/git_artifact_local.rb', line 38

def to_h
  STAGES.map { |stage| [stage, send("_#{stage}")] }.to_h
end