Class: Dapp::Config::Dimg::InstanceMethods::GitArtifact

Inherits:
Object
  • Object
show all
Defined in:
lib/dapp/config/dimg/instance_methods.rb

Overview

GitArtifact

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ GitArtifact

Returns a new instance of GitArtifact.



117
118
119
120
# File 'lib/dapp/config/dimg/instance_methods.rb', line 117

def initialize
  @_local = []
  @_remote = []
end

Instance Attribute Details

#_local ⇒ Object (readonly)

Returns the value of attribute _local.



115
116
117
# File 'lib/dapp/config/dimg/instance_methods.rb', line 115

def _local
  @_local
end

#_remote ⇒ Object (readonly)

Returns the value of attribute _remote.



115
116
117
# File 'lib/dapp/config/dimg/instance_methods.rb', line 115

def _remote
  @_remote
end

Instance Method Details

#local(_, &blk) ⇒ Object



122
123
124
# File 'lib/dapp/config/dimg/instance_methods.rb', line 122

def local(_, &blk)
  @_local << Directive::GitArtifactLocal.new(&blk)
end

#remote(repo_url, &blk) ⇒ Object



126
127
128
# File 'lib/dapp/config/dimg/instance_methods.rb', line 126

def remote(repo_url, &blk)
  @_remote << Directive::GitArtifactRemote.new(repo_url, &blk)
end