Class: Dapp::Config::Directive::ArtifactBase::Export
- Defined in:
- lib/dapp/config/directive/artifact_base.rb
Overview
Export
Direct Known Subclasses
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.
27 28 29 30 31 32 33 34 |
# File 'lib/dapp/config/directive/artifact_base.rb', line 27 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.
25 26 27 |
# File 'lib/dapp/config/directive/artifact_base.rb', line 25 def _cwd @_cwd end |
#_exclude_paths ⇒ Object
Returns the value of attribute _exclude_paths.
25 26 27 |
# File 'lib/dapp/config/directive/artifact_base.rb', line 25 def _exclude_paths @_exclude_paths end |
#_group ⇒ Object
Returns the value of attribute _group.
25 26 27 |
# File 'lib/dapp/config/directive/artifact_base.rb', line 25 def _group @_group end |
#_include_paths ⇒ Object
Returns the value of attribute _include_paths.
25 26 27 |
# File 'lib/dapp/config/directive/artifact_base.rb', line 25 def _include_paths @_include_paths end |
#_owner ⇒ Object
Returns the value of attribute _owner.
25 26 27 |
# File 'lib/dapp/config/directive/artifact_base.rb', line 25 def _owner @_owner end |
#_to ⇒ Object
Returns the value of attribute _to.
25 26 27 |
# File 'lib/dapp/config/directive/artifact_base.rb', line 25 def _to @_to end |
Instance Method Details
#_artifact_options ⇒ Object
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/dapp/config/directive/artifact_base.rb', line 36 def { to: _to, cwd: _cwd, include_paths: _include_paths, exclude_paths: _exclude_paths, owner: _owner, group: _group } end |