Class: Dapp::Config::Directive::Artifact::Base
- Inherits:
-
Object
- Object
- Dapp::Config::Directive::Artifact::Base
- Defined in:
- lib/dapp/config/directive/artifact.rb
Overview
Base
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.
-
#_owner ⇒ Object
Returns the value of attribute _owner.
-
#_paths ⇒ Object
Returns the value of attribute _paths.
-
#_where_to_add ⇒ Object
Returns the value of attribute _where_to_add.
Instance Method Summary collapse
- #_artifact_options ⇒ Object
-
#initialize(where_to_add, **options) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(where_to_add, **options) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 15 16 17 18 |
# File 'lib/dapp/config/directive/artifact.rb', line 10 def initialize(where_to_add, **) @_cwd = '' @_where_to_add = where_to_add .each do |k, v| respond_to?("_#{k}=") ? send(:"_#{k}=", v) : raise(Error::Config, code: code, data: { type: object_name, attr: k }) end end |
Instance Attribute Details
#_cwd ⇒ Object
Returns the value of attribute _cwd.
8 9 10 |
# File 'lib/dapp/config/directive/artifact.rb', line 8 def _cwd @_cwd end |
#_exclude_paths ⇒ Object
Returns the value of attribute _exclude_paths.
8 9 10 |
# File 'lib/dapp/config/directive/artifact.rb', line 8 def _exclude_paths @_exclude_paths end |
#_group ⇒ Object
Returns the value of attribute _group.
8 9 10 |
# File 'lib/dapp/config/directive/artifact.rb', line 8 def _group @_group end |
#_owner ⇒ Object
Returns the value of attribute _owner.
8 9 10 |
# File 'lib/dapp/config/directive/artifact.rb', line 8 def _owner @_owner end |
#_paths ⇒ Object
Returns the value of attribute _paths.
8 9 10 |
# File 'lib/dapp/config/directive/artifact.rb', line 8 def _paths @_paths end |
#_where_to_add ⇒ Object
Returns the value of attribute _where_to_add.
8 9 10 |
# File 'lib/dapp/config/directive/artifact.rb', line 8 def _where_to_add @_where_to_add end |
Instance Method Details
#_artifact_options ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/dapp/config/directive/artifact.rb', line 28 def { where_to_add: _where_to_add, cwd: _cwd, paths: _paths, exclude_paths: _exclude_paths, owner: _owner, group: _group } end |