Class: Dapp::Config::Dimg::InstanceMethods::GitArtifact
- Inherits:
-
Dapp::Config::Directive::Base
- Object
- Base
- Dapp::Config::Directive::Base
- Dapp::Config::Dimg::InstanceMethods::GitArtifact
- Defined in:
- lib/dapp/config/dimg/instance_methods.rb
Overview
GitArtifact
Instance Attribute Summary collapse
-
#_local ⇒ Object
readonly
Returns the value of attribute _local.
-
#_remote ⇒ Object
readonly
Returns the value of attribute _remote.
Instance Method Summary collapse
-
#initialize(**kwargs, &blk) ⇒ GitArtifact
constructor
A new instance of GitArtifact.
- #local(_, &blk) ⇒ Object
- #remote(repo_url, &blk) ⇒ Object
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
#_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
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 |