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 = '/', **kwargs, &blk) ⇒ Export

Returns a new instance of Export.

Raises:



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

#_cwdObject

Returns the value of attribute _cwd.



25
26
27
# File 'lib/dapp/config/directive/artifact_base.rb', line 25

def _cwd
  @_cwd
end

#_exclude_pathsObject

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

#_groupObject

Returns the value of attribute _group.



25
26
27
# File 'lib/dapp/config/directive/artifact_base.rb', line 25

def _group
  @_group
end

#_include_pathsObject

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

#_ownerObject

Returns the value of attribute _owner.



25
26
27
# File 'lib/dapp/config/directive/artifact_base.rb', line 25

def _owner
  @_owner
end

#_toObject

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_optionsObject



36
37
38
39
40
41
42
43
44
45
# File 'lib/dapp/config/directive/artifact_base.rb', line 36

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