vcloud-core 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 1.1.0 (2015-06-30)
2
+
3
+ Features:
4
+
5
+ - Add the ability to set the MAC address of a VM
6
+
7
+ Bugfixes:
8
+
9
+ - Add an explicit `require 'json'` to the ConfigLoader
10
+
1
11
  ## 1.0.2 (2015-02-24)
2
12
 
3
13
  Documentation:
@@ -1,4 +1,5 @@
1
1
  require 'mustache'
2
+ require 'json'
2
3
 
3
4
  module Vcloud
4
5
  module Core
@@ -1,5 +1,5 @@
1
1
  module Vcloud
2
2
  module Core
3
- VERSION = '1.0.2'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
@@ -160,12 +160,14 @@ module Vcloud
160
160
  }
161
161
  ip_address = network[:ip_address]
162
162
  allocation_mode = network[:allocation_mode]
163
+ mac_address = network[:mac_address]
163
164
 
164
165
  allocation_mode = 'manual' if ip_address
165
166
  allocation_mode = 'dhcp' unless %w{dhcp manual pool}.include?(allocation_mode)
166
167
 
167
168
  connection[:IpAddressAllocationMode] = allocation_mode.upcase
168
169
  connection[:IpAddress] = ip_address if ip_address
170
+ connection[:MACAddress] = mac_address if mac_address
169
171
  connection
170
172
  end
171
173
  Vcloud::Core::Fog::ServiceInterface.new.put_network_connection_system_section_vapp(id, section)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcloud-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
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: 2015-02-25 00:00:00.000000000 Z
12
+ date: 2015-06-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog
16
- requirement: &16960960 !ruby/object:Gem::Requirement
16
+ requirement: &13135040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.27'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *16960960
24
+ version_requirements: *13135040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: fog-core
27
- requirement: &16959280 !ruby/object:Gem::Requirement
27
+ requirement: &13134380 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: 1.27.4
36
36
  type: :runtime
37
37
  prerelease: false
38
- version_requirements: *16959280
38
+ version_requirements: *13134380
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: mustache
41
- requirement: &16957000 !ruby/object:Gem::Requirement
41
+ requirement: &12742140 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ~>
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: 0.99.0
47
47
  type: :runtime
48
48
  prerelease: false
49
- version_requirements: *16957000
49
+ version_requirements: *12742140
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: highline
52
- requirement: &16955780 !ruby/object:Gem::Requirement
52
+ requirement: &12741240 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ! '>='
@@ -57,10 +57,10 @@ dependencies:
57
57
  version: '0'
58
58
  type: :runtime
59
59
  prerelease: false
60
- version_requirements: *16955780
60
+ version_requirements: *12741240
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: gem_publisher
63
- requirement: &16954380 !ruby/object:Gem::Requirement
63
+ requirement: &12740020 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - =
@@ -68,10 +68,10 @@ dependencies:
68
68
  version: 1.2.0
69
69
  type: :development
70
70
  prerelease: false
71
- version_requirements: *16954380
71
+ version_requirements: *12740020
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: pry
74
- requirement: &16953680 !ruby/object:Gem::Requirement
74
+ requirement: &12739060 !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
77
77
  - - ! '>='
@@ -79,10 +79,10 @@ dependencies:
79
79
  version: '0'
80
80
  type: :development
81
81
  prerelease: false
82
- version_requirements: *16953680
82
+ version_requirements: *12739060
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
- requirement: &16968560 !ruby/object:Gem::Requirement
85
+ requirement: &12738260 !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
88
88
  - - ! '>='
@@ -90,10 +90,10 @@ dependencies:
90
90
  version: '0'
91
91
  type: :development
92
92
  prerelease: false
93
- version_requirements: *16968560
93
+ version_requirements: *12738260
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: rspec
96
- requirement: &16966540 !ruby/object:Gem::Requirement
96
+ requirement: &12737620 !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
99
  - - ~>
@@ -101,10 +101,10 @@ dependencies:
101
101
  version: 2.14.1
102
102
  type: :development
103
103
  prerelease: false
104
- version_requirements: *16966540
104
+ version_requirements: *12737620
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: rubocop
107
- requirement: &16965440 !ruby/object:Gem::Requirement
107
+ requirement: &12736980 !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
110
110
  - - ~>
@@ -112,10 +112,10 @@ dependencies:
112
112
  version: 0.23.0
113
113
  type: :development
114
114
  prerelease: false
115
- version_requirements: *16965440
115
+ version_requirements: *12736980
116
116
  - !ruby/object:Gem::Dependency
117
117
  name: simplecov
118
- requirement: &16964380 !ruby/object:Gem::Requirement
118
+ requirement: &12736440 !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements:
121
121
  - - ~>
@@ -123,10 +123,10 @@ dependencies:
123
123
  version: 0.7.1
124
124
  type: :development
125
125
  prerelease: false
126
- version_requirements: *16964380
126
+ version_requirements: *12736440
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: vcloud-tools-tester
129
- requirement: &16962660 !ruby/object:Gem::Requirement
129
+ requirement: &12735580 !ruby/object:Gem::Requirement
130
130
  none: false
131
131
  requirements:
132
132
  - - ~>
@@ -134,7 +134,7 @@ dependencies:
134
134
  version: '1.0'
135
135
  type: :development
136
136
  prerelease: false
137
- version_requirements: *16962660
137
+ version_requirements: *12735580
138
138
  description: Core tools for interacting with VMware vCloud Director. Includes vCloud
139
139
  Query, a light wrapper round the vCloud Query API.
140
140
  email:
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  version: '0'
248
248
  segments:
249
249
  - 0
250
- hash: -1955582521191426849
250
+ hash: -991684002623625788
251
251
  requirements: []
252
252
  rubyforge_project:
253
253
  rubygems_version: 1.8.11