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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of GitArtifact.



99
100
101
102
103
104
# File 'lib/dapp/dimg/config/dimg/instance_methods.rb', line 99

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

  super(**kwargs, &blk)
end

Instance Attribute Details

#_localObject (readonly)

Returns the value of attribute _local.



97
98
99
# File 'lib/dapp/dimg/config/dimg/instance_methods.rb', line 97

def _local
  @_local
end

#_remoteObject (readonly)

Returns the value of attribute _remote.



97
98
99
# File 'lib/dapp/dimg/config/dimg/instance_methods.rb', line 97

def _remote
  @_remote
end

Instance Method Details

#local(_, &blk) ⇒ Object



106
107
108
# File 'lib/dapp/dimg/config/dimg/instance_methods.rb', line 106

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

#remote(repo_url, &blk) ⇒ Object



110
111
112
# File 'lib/dapp/dimg/config/dimg/instance_methods.rb', line 110

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