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

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

Direct Known Subclasses

Artifact, GitArtifactLocal

Defined Under Namespace

Classes: Export

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**kwargs, &blk) ⇒ ArtifactBase

Returns a new instance of ArtifactBase.



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

def initialize(**kwargs, &blk)
  @_export = []

  super(**kwargs, &blk)
end

Instance Attribute Details

#_groupObject (readonly)

Returns the value of attribute _group.



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

def _group
  @_group
end

#_ownerObject (readonly)

Returns the value of attribute _owner.



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

def _owner
  @_owner
end

Instance Method Details

#_exportObject



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

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

    yield(export) if block_given?
  end
end