deltacloud-client 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/deltacloud.rb +3 -1
  2. metadata +62 -62
data/lib/deltacloud.rb CHANGED
@@ -200,7 +200,7 @@ module DeltaCloud
200
200
 
201
201
  # Do a HWP property for hardware profile properties
202
202
  if attribute.name == 'property'
203
- if attribute['value'] =~ /^(\d+)$/
203
+ if attribute['value'] =~ /^(\d+)\.(\d+)$/
204
204
  obj.add_hwp_property!(attribute['name'], attribute, :float) && next
205
205
  else
206
206
  obj.add_hwp_property!(attribute['name'], attribute, :integer) && next
@@ -290,6 +290,7 @@ module DeltaCloud
290
290
 
291
291
  params[:realm_id] ||= params[:realm] if params[:realm]
292
292
  params[:keyname] ||= params[:key_name] if params[:key_name]
293
+ params[:user_data] = Base64::encode64(params[:user_data]) if params[:user_data]
293
294
 
294
295
  if params[:hardware_profile] and params[:hardware_profile].class.eql?(Hash)
295
296
  params[:hardware_profile].each do |k,v|
@@ -319,6 +320,7 @@ module DeltaCloud
319
320
  if driver
320
321
  @api_driver = driver
321
322
  @driver_name = driver
323
+ @features, @entry_points = {}, {}
322
324
  discover_entry_points
323
325
  end
324
326
  @username = opts[:username] if opts[:username]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deltacloud-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Red Hat, Inc.
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-23 00:00:00 Z
18
+ date: 2011-10-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rest-client
@@ -77,52 +77,52 @@ extra_rdoc_files:
77
77
  - DISCLAIMER
78
78
  files:
79
79
  - Rakefile
80
- - lib/base_object.rb
80
+ - lib/documentation.rb
81
+ - lib/string.rb
81
82
  - lib/client_bucket_methods.rb
83
+ - lib/hwp_properties.rb
84
+ - lib/base_object.rb
82
85
  - lib/instance_state.rb
83
86
  - lib/deltacloud.rb
84
87
  - lib/plain_formatter.rb
85
- - lib/hwp_properties.rb
86
- - lib/string.rb
87
- - lib/documentation.rb
88
88
  - bin/deltacloudc
89
- - specs/images_spec.rb
90
- - specs/initialization_spec.rb
91
- - specs/hardware_profiles_spec.rb
92
- - specs/instance_states_spec.rb
93
- - specs/instances_spec.rb
94
- - specs/data/storage_snapshots/snap3.yml
95
- - specs/data/storage_snapshots/snap1.yml
96
- - specs/data/storage_snapshots/snap2.yml
97
- - specs/data/instances/inst0.yml
98
- - specs/data/instances/inst1.yml
99
- - specs/data/instances/inst2.yml
100
- - specs/data/images/img3.yml
101
- - specs/data/images/img2.yml
102
- - specs/data/images/img1.yml
103
- - specs/data/storage_volumes/vol3.yml
104
- - specs/data/storage_volumes/vol2.yml
105
- - specs/data/storage_volumes/vol1.yml
106
- - specs/keys_spec.rb
107
- - specs/content_spec.rb
108
- - specs/buckets_spec.rb
109
- - specs/fixtures/storage_snapshots/snap3.yml
110
- - specs/fixtures/storage_snapshots/snap1.yml
89
+ - specs/fixtures/images/img3.yml
90
+ - specs/fixtures/images/img1.yml
91
+ - specs/fixtures/images/img2.yml
111
92
  - specs/fixtures/storage_snapshots/snap2.yml
93
+ - specs/fixtures/storage_snapshots/snap1.yml
94
+ - specs/fixtures/storage_snapshots/snap3.yml
112
95
  - specs/fixtures/instances/inst0.yml
113
- - specs/fixtures/instances/inst1.yml
114
96
  - specs/fixtures/instances/inst2.yml
115
- - specs/fixtures/images/img3.yml
116
- - specs/fixtures/images/img2.yml
117
- - specs/fixtures/images/img1.yml
97
+ - specs/fixtures/instances/inst1.yml
118
98
  - specs/fixtures/storage_volumes/vol3.yml
119
99
  - specs/fixtures/storage_volumes/vol2.yml
120
100
  - specs/fixtures/storage_volumes/vol1.yml
121
101
  - specs/shared/resources.rb
122
- - specs/storage_volume_spec.rb
123
102
  - specs/realms_spec.rb
103
+ - specs/data/images/img3.yml
104
+ - specs/data/images/img1.yml
105
+ - specs/data/images/img2.yml
106
+ - specs/data/storage_snapshots/snap2.yml
107
+ - specs/data/storage_snapshots/snap1.yml
108
+ - specs/data/storage_snapshots/snap3.yml
109
+ - specs/data/instances/inst0.yml
110
+ - specs/data/instances/inst2.yml
111
+ - specs/data/instances/inst1.yml
112
+ - specs/data/storage_volumes/vol3.yml
113
+ - specs/data/storage_volumes/vol2.yml
114
+ - specs/data/storage_volumes/vol1.yml
115
+ - specs/initialization_spec.rb
116
+ - specs/keys_spec.rb
117
+ - specs/hardware_profiles_spec.rb
124
118
  - specs/storage_snapshot_spec.rb
119
+ - specs/instances_spec.rb
120
+ - specs/buckets_spec.rb
121
+ - specs/instance_states_spec.rb
122
+ - specs/content_spec.rb
123
+ - specs/storage_volume_spec.rb
125
124
  - specs/spec_helper.rb
125
+ - specs/images_spec.rb
126
126
  - LICENSE
127
127
  - NOTICE
128
128
  - DISCLAIMER
@@ -160,40 +160,40 @@ signing_key:
160
160
  specification_version: 3
161
161
  summary: Deltacloud REST Client
162
162
  test_files:
163
- - specs/images_spec.rb
164
- - specs/initialization_spec.rb
165
- - specs/hardware_profiles_spec.rb
166
- - specs/instance_states_spec.rb
167
- - specs/instances_spec.rb
168
- - specs/data/storage_snapshots/snap3.yml
169
- - specs/data/storage_snapshots/snap1.yml
170
- - specs/data/storage_snapshots/snap2.yml
171
- - specs/data/instances/inst0.yml
172
- - specs/data/instances/inst1.yml
173
- - specs/data/instances/inst2.yml
174
- - specs/data/images/img3.yml
175
- - specs/data/images/img2.yml
176
- - specs/data/images/img1.yml
177
- - specs/data/storage_volumes/vol3.yml
178
- - specs/data/storage_volumes/vol2.yml
179
- - specs/data/storage_volumes/vol1.yml
180
- - specs/keys_spec.rb
181
- - specs/content_spec.rb
182
- - specs/buckets_spec.rb
183
- - specs/fixtures/storage_snapshots/snap3.yml
184
- - specs/fixtures/storage_snapshots/snap1.yml
163
+ - specs/fixtures/images/img3.yml
164
+ - specs/fixtures/images/img1.yml
165
+ - specs/fixtures/images/img2.yml
185
166
  - specs/fixtures/storage_snapshots/snap2.yml
167
+ - specs/fixtures/storage_snapshots/snap1.yml
168
+ - specs/fixtures/storage_snapshots/snap3.yml
186
169
  - specs/fixtures/instances/inst0.yml
187
- - specs/fixtures/instances/inst1.yml
188
170
  - specs/fixtures/instances/inst2.yml
189
- - specs/fixtures/images/img3.yml
190
- - specs/fixtures/images/img2.yml
191
- - specs/fixtures/images/img1.yml
171
+ - specs/fixtures/instances/inst1.yml
192
172
  - specs/fixtures/storage_volumes/vol3.yml
193
173
  - specs/fixtures/storage_volumes/vol2.yml
194
174
  - specs/fixtures/storage_volumes/vol1.yml
195
175
  - specs/shared/resources.rb
196
- - specs/storage_volume_spec.rb
197
176
  - specs/realms_spec.rb
177
+ - specs/data/images/img3.yml
178
+ - specs/data/images/img1.yml
179
+ - specs/data/images/img2.yml
180
+ - specs/data/storage_snapshots/snap2.yml
181
+ - specs/data/storage_snapshots/snap1.yml
182
+ - specs/data/storage_snapshots/snap3.yml
183
+ - specs/data/instances/inst0.yml
184
+ - specs/data/instances/inst2.yml
185
+ - specs/data/instances/inst1.yml
186
+ - specs/data/storage_volumes/vol3.yml
187
+ - specs/data/storage_volumes/vol2.yml
188
+ - specs/data/storage_volumes/vol1.yml
189
+ - specs/initialization_spec.rb
190
+ - specs/keys_spec.rb
191
+ - specs/hardware_profiles_spec.rb
198
192
  - specs/storage_snapshot_spec.rb
193
+ - specs/instances_spec.rb
194
+ - specs/buckets_spec.rb
195
+ - specs/instance_states_spec.rb
196
+ - specs/content_spec.rb
197
+ - specs/storage_volume_spec.rb
199
198
  - specs/spec_helper.rb
199
+ - specs/images_spec.rb