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

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

Direct Known Subclasses

GitArtifactRemote

Defined Under Namespace

Classes: Export

Instance Attribute Summary collapse

Attributes inherited from ArtifactBase

#_group, #_owner

Instance Method Summary collapse

Methods inherited from ArtifactBase

#group, #initialize, #owner

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

Instance Attribute Details

#_asObject (readonly)

Returns the value of attribute _as.



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

def _as
  @_as
end

Instance Method Details

#_exportObject



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

def _export
  super do |export|
    export._as    = @_as

    yield(export) if block_given?
  end
end

#as(value) ⇒ Object



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

def as(value)
  @_as = value
end

#export(absolute_dir_path = '/', &blk) ⇒ Object Also known as: add



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

def export(absolute_dir_path = '/', &blk)
  super
end