Class: Dapp::Config::Directive::ArtifactBase

Inherits:
Base
  • Object
show all
Defined in:
lib/dapp/config/directive/artifact_base.rb

Overview

ArtifactBase

Direct Known Subclasses

Artifact, GitArtifactLocal

Defined Under Namespace

Classes: Export

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ ArtifactBase

Returns a new instance of ArtifactBase.



8
9
10
11
# File 'lib/dapp/config/directive/artifact_base.rb', line 8

def initialize
  @_export = []
  super
end

Instance Attribute Details

#_group ⇒ Object (readonly)

Returns the value of attribute _group.



6
7
8
# File 'lib/dapp/config/directive/artifact_base.rb', line 6

def _group
  @_group
end

#_owner ⇒ Object (readonly)

Returns the value of attribute _owner.



6
7
8
# File 'lib/dapp/config/directive/artifact_base.rb', line 6

def _owner
  @_owner
end

Instance Method Details

#_export ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/dapp/config/directive/artifact_base.rb', line 13

def _export
  @_export.each do |export|
    export._owner ||= @_owner
    export._group ||= @_group

    yield(export) if block_given?
  end
end