Class: Souschef::Testkitchen::Solusvm

Inherits:
Object
  • Object
show all
Defined in:
lib/souschef/testkitchen/solusvm.rb

Overview

Testkitchen Docker configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cookbook) ⇒ Solusvm

Returns a new instance of Solusvm.



7
8
9
10
# File 'lib/souschef/testkitchen/solusvm.rb', line 7

def initialize(cookbook)
  @cookbook = cookbook
  populate_configuration
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



5
6
7
# File 'lib/souschef/testkitchen/solusvm.rb', line 5

def config
  @config
end

#cookbookObject

Returns the value of attribute cookbook.



5
6
7
# File 'lib/souschef/testkitchen/solusvm.rb', line 5

def cookbook
  @cookbook
end

Instance Method Details

#yamlObject

Public - Return YAML formatted data

Returns String



15
16
17
# File 'lib/souschef/testkitchen/solusvm.rb', line 15

def yaml
  @config.to_yaml
end