Class: Dapp::Dimg::Config::Directive::GitArtifactLocal::Export::StageDependencies
- Inherits:
-
Base
- Object
- Config::Base
- Config::Directive::Base
- Base
- Dapp::Dimg::Config::Directive::GitArtifactLocal::Export::StageDependencies
- 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
-
#initialize(&blk) ⇒ StageDependencies
constructor
A new instance of StageDependencies.
- #to_h ⇒ Object
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_h ⇒ Object
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 |