Class: Dapp::Dimg::Config::Directive::ArtifactBase::Export
- Inherits:
-
Base
- Object
- Config::Base
- Config::Directive::Base
- Base
- Dapp::Dimg::Config::Directive::ArtifactBase::Export
- Defined in:
- lib/dapp/dimg/config/directive/artifact_base.rb
Direct Known Subclasses
Dapp::Dimg::Config::Directive::Artifact::Export, GitArtifactLocal::Export
Instance Attribute Summary collapse
-
#_cwd ⇒ Object
Returns the value of attribute _cwd.
-
#_exclude_paths ⇒ Object
Returns the value of attribute _exclude_paths.
-
#_group ⇒ Object
Returns the value of attribute _group.
-
#_include_paths ⇒ Object
Returns the value of attribute _include_paths.
-
#_owner ⇒ Object
Returns the value of attribute _owner.
-
#_to ⇒ Object
Returns the value of attribute _to.
Instance Method Summary collapse
- #_artifact_options ⇒ Object
-
#initialize(cwd = '/', **kwargs, &blk) ⇒ Export
constructor
A new instance of Export.
Constructor Details
#initialize(cwd = '/', **kwargs, &blk) ⇒ Export
Returns a new instance of Export.
26 27 28 29 30 31 32 33 |
# File 'lib/dapp/dimg/config/directive/artifact_base.rb', line 26 def initialize(cwd = '/', **kwargs, &blk) raise Error::Config, code: :export_cwd_absolute_path_required unless Pathname(cwd).absolute? @_cwd = path_format(cwd) @_include_paths ||= [] @_exclude_paths ||= [] super(**kwargs, &blk) end |
Instance Attribute Details
#_cwd ⇒ Object
Returns the value of attribute _cwd.
24 25 26 |
# File 'lib/dapp/dimg/config/directive/artifact_base.rb', line 24 def _cwd @_cwd end |
#_exclude_paths ⇒ Object
Returns the value of attribute _exclude_paths.
24 25 26 |
# File 'lib/dapp/dimg/config/directive/artifact_base.rb', line 24 def _exclude_paths @_exclude_paths end |
#_group ⇒ Object
Returns the value of attribute _group.
24 25 26 |
# File 'lib/dapp/dimg/config/directive/artifact_base.rb', line 24 def _group @_group end |
#_include_paths ⇒ Object
Returns the value of attribute _include_paths.
24 25 26 |
# File 'lib/dapp/dimg/config/directive/artifact_base.rb', line 24 def _include_paths @_include_paths end |
#_owner ⇒ Object
Returns the value of attribute _owner.
24 25 26 |
# File 'lib/dapp/dimg/config/directive/artifact_base.rb', line 24 def _owner @_owner end |
#_to ⇒ Object
Returns the value of attribute _to.
24 25 26 |
# File 'lib/dapp/dimg/config/directive/artifact_base.rb', line 24 def _to @_to end |
Instance Method Details
#_artifact_options ⇒ Object
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/dapp/dimg/config/directive/artifact_base.rb', line 35 def { to: _to, cwd: _cwd, include_paths: _include_paths, exclude_paths: _exclude_paths, owner: _owner, group: _group } end |