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

#_cwd, #_exclude_paths, #_group, #_include_paths, #_owner, #_to

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, #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

#after(stage) ⇒ Object



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

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

#before(stage) ⇒ Object



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

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)


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

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