Class: WinRes::Specification
- Inherits:
-
Object
- Object
- WinRes::Specification
- Defined in:
- lib/puppet/provider/ntx_create_vm/vm-win-res.rb
Instance Method Summary collapse
- #addClusterReference(clust) ⇒ Object
- #addResources(res) ⇒ Object
- #getSpecificationsData ⇒ Object
-
#initialize(name) ⇒ Specification
constructor
A new instance of Specification.
Constructor Details
#initialize(name) ⇒ Specification
Returns a new instance of Specification.
24 25 26 |
# File 'lib/puppet/provider/ntx_create_vm/vm-win-res.rb', line 24 def initialize(name) @name = name; end |
Instance Method Details
#addClusterReference(clust) ⇒ Object
32 33 34 |
# File 'lib/puppet/provider/ntx_create_vm/vm-win-res.rb', line 32 def addClusterReference(clust) @clust = clust; end |
#addResources(res) ⇒ Object
28 29 30 |
# File 'lib/puppet/provider/ntx_create_vm/vm-win-res.rb', line 28 def addResources(res) @res = res end |
#getSpecificationsData ⇒ Object
36 37 38 39 |
# File 'lib/puppet/provider/ntx_create_vm/vm-win-res.rb', line 36 def getSpecificationsData() settings = {name: @name, resources: @res, cluster_reference: @clust} return settings; end |