Class: Dapp::Dimg::Config::Directive::Artifact

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

Defined Under Namespace

Classes: Export

Instance Attribute Summary collapse

Attributes inherited from ArtifactBase

#_group, #_owner

Instance Method Summary collapse

Methods inherited from ArtifactBase

#export, #group, #owner

Methods inherited from Base

#clone_to_artifact

Methods inherited from Config::Directive::Base

#clone, #encode_with

Constructor Details

#initialize(config:, **kwargs, &blk) ⇒ Artifact

Returns a new instance of Artifact.



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

def initialize(config:, **kwargs, &blk)
  @_config = config
  super(**kwargs, &blk)
end

Instance Attribute Details

#_configObject (readonly)

Returns the value of attribute _config.



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

def _config
  @_config
end

Instance Method Details

#_exportObject



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

def _export
  super do |export|
    export._before ||= @_before
    export._after ||= @_after
    export._config = _config
  end
end