Class: Dapp::Dimg::Config::Directive::Artifact::Export

Inherits:
Dapp::Dimg::Config::Directive::ArtifactBase::Export show all
Defined in:
lib/dapp/dimg/config/directive/artifact.rb

Instance Attribute Summary collapse

Attributes inherited from Dapp::Dimg::Config::Directive::ArtifactBase::Export

#_exclude_paths, #_group, #_include_paths, #_owner

Instance Method Summary collapse

Methods inherited from Dapp::Dimg::Config::Directive::ArtifactBase::Export

#_artifact_options, #exclude_paths, #group, #include_paths, #initialize, #owner, #to, #validate!

Methods inherited from Base

#clone_to_artifact

Methods inherited from Config::Directive::Base

#clone, #encode_with, #initialize

Constructor Details

This class inherits a constructor from Dapp::Dimg::Config::Directive::ArtifactBase::Export

Instance Attribute Details

#_afterObject

Returns the value of attribute _after.



23
24
25
# File 'lib/dapp/dimg/config/directive/artifact.rb', line 23

def _after
  @_after
end

#_beforeObject

Returns the value of attribute _before.



23
24
25
# File 'lib/dapp/dimg/config/directive/artifact.rb', line 23

def _before
  @_before
end

#_configObject

Returns the value of attribute _config.



22
23
24
# File 'lib/dapp/dimg/config/directive/artifact.rb', line 22

def _config
  @_config
end

Instance Method Details

#_cwdObject



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

def _cwd
  @_cwd ||= @_to
end

#_toObject



29
30
31
# File 'lib/dapp/dimg/config/directive/artifact.rb', line 29

def _to
  @_to ||= @_cwd
end

#after(stage) ⇒ Object



41
42
43
44
45
46
47
# File 'lib/dapp/dimg/config/directive/artifact.rb', line 41

def after(stage)
  sub_directive_eval do
    stage = stage.to_sym
    associate_validation!(:after, stage, @_after)
    @_after = stage
  end
end

#before(stage) ⇒ Object



33
34
35
36
37
38
39
# File 'lib/dapp/dimg/config/directive/artifact.rb', line 33

def before(stage)
  sub_directive_eval do
    stage = stage.to_sym
    associate_validation!(:before, stage, @_before)
    @_before = stage
  end
end

#not_associated?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/dapp/dimg/config/directive/artifact.rb', line 49

def not_associated?
  (_before || _after).nil?
end