class Dapp::Dimg::Config::Directive::GitArtifactRemote::Export
Attributes
_branch[RW]
_commit[RW]
_name[RW]
_tag[RW]
_url[RW]
Public Instance Methods
_artifact_options()
click to toggle source
Calls superclass method
Dapp::Dimg::Config::Directive::GitArtifactLocal::Export#_artifact_options
# File lib/dapp/dimg/config/directive/git_artifact_remote.rb, line 44 def _artifact_options super.merge(name: _name, branch: _branch, tag: _tag, commit: _commit) end
branch(value)
click to toggle source
# File lib/dapp/dimg/config/directive/git_artifact_remote.rb, line 48 def branch(value) sub_directive_eval { @_branch = value.to_s } end
commit(value)
click to toggle source
# File lib/dapp/dimg/config/directive/git_artifact_remote.rb, line 56 def commit(value) sub_directive_eval { @_commit = value.to_s } end
tag(value)
click to toggle source
# File lib/dapp/dimg/config/directive/git_artifact_remote.rb, line 52 def tag(value) sub_directive_eval { @_tag = value.to_s } end
validate!()
click to toggle source
Calls superclass method
Dapp::Dimg::Config::Directive::GitArtifactLocal::Export#validate!
# File lib/dapp/dimg/config/directive/git_artifact_remote.rb, line 60 def validate! super refs = [_branch, _tag, _commit].compact raise ::Dapp::Error::Config, code: :git_artifact_remote_with_refs if refs.length > 1 end