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 collapse

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, #encode_with, #initialize

Constructor Details

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

Instance Attribute Details

#_asObject

Returns the value of attribute _as.



27
28
29
# File 'lib/dapp/dimg/config/directive/git_artifact_local.rb', line 27

def _as
  @_as
end

Instance Method Details

#_artifact_optionsObject



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

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

#stage_dependencies(&blk) ⇒ Object



29
30
31
# File 'lib/dapp/dimg/config/directive/git_artifact_local.rb', line 29

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

#validate!Object



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

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