Class: Dapp::Config::Directive::GitArtifact::Remote
- Inherits:
-
Local
- Object
- Artifact::Base
- Local
- Dapp::Config::Directive::GitArtifact::Remote
- Defined in:
- lib/dapp/config/directive/git_artifact.rb
Overview
Remote
Instance Attribute Summary collapse
-
#_branch ⇒ Object
Returns the value of attribute _branch.
-
#_name ⇒ Object
Returns the value of attribute _name.
-
#_url ⇒ Object
Returns the value of attribute _url.
Attributes inherited from Artifact::Base
#_cwd, #_exclude_paths, #_group, #_owner, #_paths, #_where_to_add
Instance Method Summary collapse
- #_artifact_options ⇒ Object
-
#initialize(url, where_to_add, **options) ⇒ Remote
constructor
A new instance of Remote.
Constructor Details
#initialize(url, where_to_add, **options) ⇒ Remote
Returns a new instance of Remote.
45 46 47 48 49 50 |
# File 'lib/dapp/config/directive/git_artifact.rb', line 45 def initialize(url, where_to_add, **) @_url = url @_name = url.gsub(%r{.*?([^\/ ]+)\.git}, '\\1') @_branch = .delete(:branch) super(where_to_add, **) end |
Instance Attribute Details
#_branch ⇒ Object
Returns the value of attribute _branch.
43 44 45 |
# File 'lib/dapp/config/directive/git_artifact.rb', line 43 def _branch @_branch end |
#_name ⇒ Object
Returns the value of attribute _name.
43 44 45 |
# File 'lib/dapp/config/directive/git_artifact.rb', line 43 def _name @_name end |
#_url ⇒ Object
Returns the value of attribute _url.
43 44 45 |
# File 'lib/dapp/config/directive/git_artifact.rb', line 43 def _url @_url end |
Instance Method Details
#_artifact_options ⇒ Object
52 53 54 |
# File 'lib/dapp/config/directive/git_artifact.rb', line 52 def super.merge(name: _name, branch: _branch) end |