Class: Dapp::Dimg::Config::Dimg::InstanceMethods::GitArtifact
- Inherits:
-
Dapp::Dimg::Config::Directive::Base
- Object
- Config::Base
- Config::Directive::Base
- Dapp::Dimg::Config::Directive::Base
- Dapp::Dimg::Config::Dimg::InstanceMethods::GitArtifact
- Defined in:
- lib/dapp/dimg/config/dimg/instance_methods.rb
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.
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
#_local ⇒ Object (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 |
#_remote ⇒ Object (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 |