Class: Dapp::Config::Directive::ArtifactBase::Export

Inherits:
Base
  • Object
show all
Defined in:
lib/dapp/config/directive/artifact_base.rb

Overview

Export

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cwd = '/') ⇒ Export

Returns a new instance of Export.

Raises:



26
27
28
29
30
31
32
33
# File 'lib/dapp/config/directive/artifact_base.rb', line 26

def initialize(cwd = '/')
  raise Error::Config, code: :export_cwd_absolute_path_required unless Pathname(cwd).absolute?
  @_cwd = cwd
  @_include_paths ||= []
  @_exclude_paths ||= []

  super()
end

Instance Attribute Details

#_cwd ⇒ Object

Returns the value of attribute _cwd.



24
25
26
# File 'lib/dapp/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/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/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/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/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/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/config/directive/artifact_base.rb', line 35

def _artifact_options
  {
    to:            _to,
    cwd:           _cwd,
    include_paths: _include_paths,
    exclude_paths: _exclude_paths,
    owner:         _owner,
    group:         _group
  }
end