knife-voxel 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ class Chef
11
11
  end
12
12
 
13
13
  def run
14
- devices = [ ui.color('ID', :bold), ui.color('Name', :bold), ui.color('Type', :bold), ui.color('Status', :bold), ui.color('Facility', :bold), ui.color('IP', :bold) ]
14
+ devices = [ ui.color('ID', :bold), ui.color('Name', :bold), ui.color('Type', :bold), ui.color('Status', :bold), ui.color('Facility', :bold), ui.color('Public_IP', :bold), ui.color('Private_IP', :bold) ]
15
15
  statuses = hapi.helper_devices_status
16
16
 
17
17
  devices_list = hapi.voxel_devices_list['devices']
@@ -42,16 +42,18 @@ class Chef
42
42
  ips = [ ips ]
43
43
  end
44
44
 
45
- ip = ips.select { |a| a['type'] == "frontend" }.first
45
+ ip_frontend = ips.select { |a| a['type'] == "frontend" }.first
46
+ ip_backend = ips.select { |a| a['type'] == "backend" }.first
46
47
 
47
- devices << (ip.nil? ? "" : ip["content"])
48
+ devices << (ip_frontend.nil? ? "" : ip_frontend["content"])
49
+ devices << (ip_backend.nil? ? "" : ip_backend["content"])
48
50
  else
49
51
  devices << ""
50
52
  end
51
53
  end
52
54
  end
53
55
 
54
- puts ui.list(devices, :columns_across, 6)
56
+ puts ui.list(devices, :columns_across, 7)
55
57
  end
56
58
  end
57
59
  end
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module Voxel
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-voxel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
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-02 00:00:00.000000000Z
12
+ date: 2013-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: voxel-hapi
16
- requirement: &12330100 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: 1.1.10
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *12330100
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.1.10
25
30
  description: Voxel hAPI Support for Chef's knife command
26
31
  email:
27
32
  - jwb@voxel.net
@@ -66,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
71
  version: '0'
67
72
  requirements: []
68
73
  rubyforge_project:
69
- rubygems_version: 1.8.10
74
+ rubygems_version: 1.8.24
70
75
  signing_key:
71
76
  specification_version: 3
72
77
  summary: Voxel hAPI Support for Chef's knife command