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

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

Defined Under Namespace

Classes: StageDependencies

Instance Attribute Summary

Attributes inherited from ArtifactBase::Export

#_cwd, #_exclude_paths, #_group, #_include_paths, #_owner, #_to

Instance Method Summary collapse

Methods inherited from ArtifactBase::Export

#exclude_paths, #group, #include_paths, #initialize, #owner, #to

Methods inherited from Base

#clone_to_artifact

Methods inherited from Config::Directive::Base

#clone, #initialize

Constructor Details

This class inherits a constructor from Dapp::Dimg::Config::Directive::ArtifactBase::Export

Instance Method Details

#_artifact_optionsObject



21
22
23
# File 'lib/dapp/dimg/config/directive/git_artifact_local.rb', line 21

def _artifact_options
  super.merge(stages_dependencies: stage_dependencies.to_h)
end

#stage_dependencies(&blk) ⇒ Object



13
14
15
# File 'lib/dapp/dimg/config/directive/git_artifact_local.rb', line 13

def stage_dependencies(&blk)
  @stage_dependencies ||= StageDependencies.new(&blk)
end

#validate!Object

Raises:



17
18
19
# File 'lib/dapp/dimg/config/directive/git_artifact_local.rb', line 17

def validate!
  raise Error::Config, code: :add_to_required if _to.nil?
end