Class: Nib::History::Compose::Services

Inherits:
Object
  • Object
show all
Defined in:
lib/nib/history/compose.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(volume_name, original_config) ⇒ Services

Returns a new instance of Services.



54
55
56
57
# File 'lib/nib/history/compose.rb', line 54

def initialize(volume_name, original_config)
  @original_config = original_config
  @volume_name = volume_name
end

Instance Attribute Details

#original_configObject (readonly)

Returns the value of attribute original_config.



52
53
54
# File 'lib/nib/history/compose.rb', line 52

def original_config
  @original_config
end

#volume_nameObject (readonly)

Returns the value of attribute volume_name.



52
53
54
# File 'lib/nib/history/compose.rb', line 52

def volume_name
  @volume_name
end

Instance Method Details

#configObject



59
60
61
62
63
# File 'lib/nib/history/compose.rb', line 59

def config
  original_config.transform_values do |definition|
    Service.new(volume_name, definition).config
  end
end