esxmagicwand 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -23,7 +23,7 @@ EsxMagicWand deploy VMs on ESXi hypervisors and starts a PXE installation
23
23
  [vm]
24
24
  name=CentOS6
25
25
  size=20000
26
- cpu=1
26
+ cpus=1
27
27
  memory=3000
28
28
  os_type=centos64Guest
29
29
  network1=VM Network
data/bin/deploy_vm CHANGED
@@ -34,7 +34,7 @@ class BaseCommand < Clamp::Command
34
34
  vm = VMWizard::VirtualMachine.new(
35
35
  :name => c.params['vm']['name'],
36
36
  :disk_size => c.params['vm']['size'],
37
- :cpu => c.params['vm']['cpu'],
37
+ :cpus => c.params['vm']['cpus'],
38
38
  :ram => c.params['vm']['memory'],
39
39
  :disk_type => c.params['vm']['disk_type'],
40
40
  :guest => c.params['vm']['os_type'],
data/lib/esxmagicwand.rb CHANGED
@@ -3,12 +3,12 @@ require File.join(File.dirname(__FILE__), 'dhcp.rb')
3
3
  module VMWizard
4
4
 
5
5
  class VirtualMachine
6
- attr_reader :name, :disk_size, :cpu, :ram, :disk_type, :guest, :nics
6
+ attr_reader :name, :disk_size, :cpus, :ram, :disk_type, :guest, :nics
7
7
 
8
- def initialize(specs)
8
+ def initialize(specs)
9
9
  @name = specs[:name]
10
10
  @disk_size = specs[:disk_size]
11
- @cpu = specs[:cpu]
11
+ @cpus = specs[:cpus]
12
12
  @ram = specs[:ram]
13
13
  @disk_type = specs[:disk_type]
14
14
  @guest = specs[:guest]
@@ -31,6 +31,7 @@ module VMWizard
31
31
  :disk_type => :thin,
32
32
  :disk_size => vm.disk_size,
33
33
  :memory => vm.ram,
34
+ :cpus => vm.cpus,
34
35
  :guest_id => vm.guest,
35
36
  :nics => vm.nics
36
37
  )
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esxmagicwand
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - sgirones
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-02 00:00:00 Z
18
+ date: 2012-01-03 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  requirement: &id001 !ruby/object:Gem::Requirement