knife-esx 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -167,8 +167,7 @@ class Chef
167
167
  :memory => memory,
168
168
  :guest_id => guest_id
169
169
  vm.power_on
170
- puts " done \n"
171
-
170
+
172
171
  puts "#{ui.color("VM Name", :cyan)}: #{vm.name}"
173
172
  puts "#{ui.color("VM Memory", :cyan)}: #{(vm.memory_size.to_f/1024/1024).round} MB"
174
173
 
@@ -177,7 +176,10 @@ class Chef
177
176
  timeout = 100
178
177
  found = connection.virtual_machines.find { |v| v.name == vm.name }
179
178
  loop do
180
- break if found.guest_info.vmware_tools_installed?
179
+ if not vm.ip_address.nil? and not vm.ip_address.empty?
180
+ puts "\n#{ui.color("VM IP Address: #{vm.ip_address}", :cyan)}"
181
+ break
182
+ end
181
183
  timeout -= 1
182
184
  if timeout == 0
183
185
  ui.error "Timeout trying to reach the VM. Does it have vmware-tools installed?"
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module ESX
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-esx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-16 00:00:00.000000000 Z
12
+ date: 2011-11-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: esx
16
- requirement: &18198700 !ruby/object:Gem::Requirement
16
+ requirement: &13517740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0.2'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *18198700
24
+ version_requirements: *13517740
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: terminal-table
27
- requirement: &18197160 !ruby/object:Gem::Requirement
27
+ requirement: &13517060 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *18197160
35
+ version_requirements: *13517060
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: chef
38
- requirement: &18196000 !ruby/object:Gem::Requirement
38
+ requirement: &13516100 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0.10'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *18196000
46
+ version_requirements: *13516100
47
47
  description: ESX Support for Chef's Knife Command
48
48
  email:
49
49
  - rubiojr@frameos.org