Class: Construi::Config::Target
- Inherits:
-
Object
- Object
- Construi::Config::Target
- Includes:
- BuildEnvironment, Options
- Defined in:
- lib/construi/config.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#yaml ⇒ Object
readonly
Returns the value of attribute yaml.
Instance Method Summary collapse
- #commands ⇒ Object
-
#initialize(yaml, parent) ⇒ Target
constructor
A new instance of Target.
Methods included from Options
Methods included from Links
Methods included from Volumes
Methods included from EnvironmentVariables
#env, #env_configured?, #env_hash
Methods included from Files
Methods included from Image
#build, #image, #image_configured, #image_configured?, #privileged?
Methods included from WrappedYaml
Constructor Details
#initialize(yaml, parent) ⇒ Target
Returns a new instance of Target.
172 173 174 175 |
# File 'lib/construi/config.rb', line 172 def initialize(yaml, parent) @yaml = yaml @parent = parent end |
Instance Attribute Details
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
170 171 172 |
# File 'lib/construi/config.rb', line 170 def parent @parent end |
#yaml ⇒ Object (readonly)
Returns the value of attribute yaml.
170 171 172 |
# File 'lib/construi/config.rb', line 170 def yaml @yaml end |
Instance Method Details
#commands ⇒ Object
177 178 179 |
# File 'lib/construi/config.rb', line 177 def commands Array(@yaml.is_a?(Hash) ? @yaml['run'] : @yaml) end |