Module: Construi::Config::Image
- Included in:
- Environment
- Defined in:
- lib/construi/config.rb
Instance Method Summary collapse
Instance Method Details
#build ⇒ Object
9 10 11 |
# File 'lib/construi/config.rb', line 9 def build image_configured :build end |
#image ⇒ Object
5 6 7 |
# File 'lib/construi/config.rb', line 5 def image image_configured :image end |
#image_configured(what) ⇒ Object
17 18 19 |
# File 'lib/construi/config.rb', line 17 def image_configured(what) image_configured? ? yaml[what.to_s] : with_parent(&what) end |
#image_configured? ⇒ Boolean
13 14 15 |
# File 'lib/construi/config.rb', line 13 def image_configured? yaml.is_a?(Hash) && (yaml.has_key?('build') || yaml.has_key?('image')) end |