class Dapp::Dimg::Config::Directive::GitArtifactRemote
Attributes
_branch[R]
_commit[R]
_name[R]
_tag[R]
_url[R]
Public Class Methods
new(url, **kwargs, &blk)
click to toggle source
Calls superclass method
Dapp::Dimg::Config::Directive::ArtifactBase::new
# File lib/dapp/dimg/config/directive/git_artifact_remote.rb, line 10 def initialize(url, **kwargs, &blk) @_url = url @_name = git_url_to_name(url) super(**kwargs, &blk) end
Public Instance Methods
_export() { |export| ... }
click to toggle source
Calls superclass method
Dapp::Dimg::Config::Directive::GitArtifactLocal#_export
# File lib/dapp/dimg/config/directive/git_artifact_remote.rb, line 29 def _export super do |export| export._url = @_url export._name = @_name export._branch ||= @_branch export._tag ||= @_tag export._commit ||= @_commit yield(export) if block_given? end end
branch(value)
click to toggle source
# File lib/dapp/dimg/config/directive/git_artifact_remote.rb, line 17 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 25 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 21 def tag(value) sub_directive_eval { @_tag = value.to_s } end