Class: Dapp::Config::Artifact::Stage

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

Overview

Stage

Constant Summary collapse

STAGES =
[:from, :infra_install, :source_1_archive, :source_1, :app_install, :source_2,
:infra_setup, :source_3, :chef_cookbooks, :app_setup, :source_4, :source_5].freeze

Instance Attribute Summary collapse

Attributes inherited from Base

#_cwd, #_group, #_owner, #_paths, #_where_to_add

Instance Method Summary collapse

Methods inherited from Base

#_artifact_options, #clone

Constructor Details

#initialize(*args) ⇒ Stage

Returns a new instance of Stage.

Raises:



56
57
58
59
# File 'lib/dapp/config/artifact.rb', line 56

def initialize(*args)
  super
  raise Error::Config, code: :stage_artifact_not_associated if _before.nil? && _after.nil?
end

Instance Attribute Details

#_after ⇒ Object

Returns the value of attribute _after.



54
55
56
# File 'lib/dapp/config/artifact.rb', line 54

def _after
  @_after
end

#_before ⇒ Object

Returns the value of attribute _before.



54
55
56
# File 'lib/dapp/config/artifact.rb', line 54

def _before
  @_before
end

#_config ⇒ Object

Returns the value of attribute _config.



53
54
55
# File 'lib/dapp/config/artifact.rb', line 53

def _config
  @_config
end