Class: DC::Group
- Inherits:
- 
      Object
      
        - Object
- DC::Group
 
- Defined in:
- lib/dc.rb
Instance Attribute Summary collapse
- 
  
    
      #images  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute images. 
Instance Method Summary collapse
- #build_missing_images ⇒ Object
- #containers ⇒ Object
- #destroy ⇒ Object
- 
  
    
      #initialize(hash, directory:)  ⇒ Group 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Group. 
- #start ⇒ Object
Constructor Details
Instance Attribute Details
#images ⇒ Object (readonly)
Returns the value of attribute images.
| 93 94 95 | # File 'lib/dc.rb', line 93 def images @images end | 
Instance Method Details
#build_missing_images ⇒ Object
| 99 100 101 102 103 | # File 'lib/dc.rb', line 99 def build_missing_images @images.each do |image| image.build unless image.exist? end end | 
#containers ⇒ Object
| 95 96 97 | # File 'lib/dc.rb', line 95 def containers @containers ||= create_containers end | 
#destroy ⇒ Object
| 111 112 113 | # File 'lib/dc.rb', line 111 def destroy containers.each &:destroy end |