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

Inherits:
Dapp::Config::Directive::Base show all
Defined in:
lib/dapp/config/dimg/instance_methods.rb

Overview

GitArtifact

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of GitArtifact.



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

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

  super(**kwargs, &blk)
end

Instance Attribute Details

#_localObject (readonly)

Returns the value of attribute _local.



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

def _local
  @_local
end

#_remoteObject (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



124
125
126
# File 'lib/dapp/config/dimg/instance_methods.rb', line 124

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

#remote(repo_url, &blk) ⇒ Object



128
129
130
# File 'lib/dapp/config/dimg/instance_methods.rb', line 128

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