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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cwd = '/', **kwargs, &blk) ⇒ Export

Returns a new instance of Export.

Raises:



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

#_cwdObject

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_pathsObject

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

#_groupObject

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_pathsObject

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

#_ownerObject

Returns the value of attribute _owner.



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

def _owner
  @_owner
end

#_toObject

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_optionsObject



35
36
37
38
39
40
41
42
43
44
# File 'lib/dapp/dimg/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