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

Methods inherited from Base

#clone_to_artifact

Methods inherited from Config::Directive::Base

#clone, #encode_with

Constructor Details

#initialize(&blk) ⇒ StageDependencies

Returns a new instance of StageDependencies.



59
60
61
# File 'lib/dapp/dimg/config/directive/git_artifact_local.rb', line 59

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

Instance Method Details

#to_hObject



63
64
65
# File 'lib/dapp/dimg/config/directive/git_artifact_local.rb', line 63

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