hpcloud 2.0.9 → 2.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/README.rdoc +2 -2
- data/lib/hpcloud/auth_cache.rb +1 -0
- data/lib/hpcloud/connection.rb +20 -20
- data/lib/hpcloud/version.rb +2 -2
- metadata +4 -6
- data/lib/hpcloud/version.rb-e +0 -27
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZDhkMTc3Mjg1ZDMzNDliZDQzNGEyMmNjZWZkYmVkMGMwZmY2Y2I0ZA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MjBjOTQxOWI2NWRjYmM3OTA1ZDJmMGUzNGRkODI3N2U1ZjMxNGIxZQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YThkN2ZkYmY3YWJjMjQzYTY2MTA2MTI3YjI4N2MzZDBjOTI2MGVhYzYzN2Fk
|
10
|
+
NTQ5YWYyM2U2ZTI2MDYyZWUxOWVlZmQ3YjEyMDI3NWQ5NTU3NjczMjZmOGI4
|
11
|
+
ZTJmZTcyYzEyNGRjOGU0N2ZlMDZjNTdkNTIyOTZkYmI5OTFlNTE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YmMxOTZhYTQ3ZjAzNWVjM2ExOTFjZTUzYTNiODg0ZTA5MWY5YzkyNDZjMWU0
|
14
|
+
YTk4NDJhMjg1NDA4OTFlMGMzM2ZmOTY5MmMyOWQ3OTc3ZDlkOGQ1MjcxNGU4
|
15
|
+
NTlhZmI0ZmMwMDUyMTdiN2M0NjIyNTg5NjUwYWNmY2I0Y2ZjMGY=
|
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
= Unix Command Line Interface
|
1
|
+
= Unix Command Line Interface (Deprecated)
|
2
2
|
|
3
|
-
The Unix Command Line Interface is a tool which allows Unix or Mac users to manage their HP Cloud Services from the command line.
|
3
|
+
The Unix Command Line Interface has been **deprecated** since late in 2013. It may or may not work for you. Fixes may be pushed and they might be merged. The Unix Command Line Interface is a tool which allows Unix or Mac users to manage their HP Cloud Services from the command line.
|
4
4
|
|
5
5
|
== System Requirements
|
6
6
|
|
data/lib/hpcloud/auth_cache.rb
CHANGED
data/lib/hpcloud/connection.rb
CHANGED
@@ -115,8 +115,8 @@ module HP
|
|
115
115
|
def storage(account_name=nil)
|
116
116
|
account = get_account(account_name)
|
117
117
|
return @storage_connection[account] unless @storage_connection[account].nil?
|
118
|
-
opts = create_options(account, '
|
119
|
-
read_creds(account, opts, '
|
118
|
+
opts = create_options(account, 'object-store')
|
119
|
+
read_creds(account, opts, 'object-store')
|
120
120
|
begin
|
121
121
|
@storage_connection[account] = Fog::Storage.new(opts)
|
122
122
|
write_creds(opts, @storage_connection[account])
|
@@ -131,15 +131,15 @@ module HP
|
|
131
131
|
def compute
|
132
132
|
account = get_account()
|
133
133
|
return @compute_connection[account] unless @compute_connection[account].nil?
|
134
|
-
opts = create_options(account, '
|
134
|
+
opts = create_options(account, 'compute')
|
135
135
|
opts[:version] = :v2
|
136
|
-
read_creds(account, opts, '
|
136
|
+
read_creds(account, opts, 'compute')
|
137
137
|
begin
|
138
138
|
@compute_connection[account] = Fog::Compute.new(opts)
|
139
139
|
write_creds(opts, @compute_connection[account])
|
140
140
|
rescue Exception => e
|
141
141
|
@authcache.remove(opts)
|
142
|
-
raise Fog::HP::Errors::ServiceError, "Please check your HP Cloud Services account to make sure the '
|
142
|
+
raise Fog::HP::Errors::ServiceError, "Please check your HP Cloud Services account to make sure the 'compute' service is activated for the appropriate availability zone.\n Exception: #{e}\n Print the service catalog: hpcloud account:catalog #{account}"
|
143
143
|
end
|
144
144
|
begin
|
145
145
|
@compute_connection[account].set_path('/v2/' + opts[:hp_tenant_id])
|
@@ -152,15 +152,15 @@ module HP
|
|
152
152
|
def block
|
153
153
|
account = get_account()
|
154
154
|
return @block_connection[account] unless @block_connection[account].nil?
|
155
|
-
opts = create_options(account, '
|
155
|
+
opts = create_options(account, 'volume')
|
156
156
|
opts.delete(:provider)
|
157
|
-
read_creds(account, opts, '
|
157
|
+
read_creds(account, opts, 'volume')
|
158
158
|
begin
|
159
159
|
@block_connection[account] = Fog::HP::BlockStorageV2.new(opts)
|
160
160
|
write_creds(opts, @block_connection[account])
|
161
161
|
rescue Exception => e
|
162
162
|
@authcache.remove(opts)
|
163
|
-
raise Fog::HP::Errors::ServiceError, "Please check your HP Cloud Services account to make sure the '
|
163
|
+
raise Fog::HP::Errors::ServiceError, "Please check your HP Cloud Services account to make sure the 'volume' service is activated for the appropriate availability zone.\n Exception: #{e}\n Print the service catalog: hpcloud account:catalog #{account}"
|
164
164
|
end
|
165
165
|
return @block_connection[account]
|
166
166
|
end
|
@@ -168,14 +168,14 @@ module HP
|
|
168
168
|
def cdn
|
169
169
|
account = get_account()
|
170
170
|
return @cdn_connection[account] unless @cdn_connection[account].nil?
|
171
|
-
opts = create_options(account, '
|
172
|
-
read_creds(account, opts, '
|
171
|
+
opts = create_options(account, 'hpext:cdn')
|
172
|
+
read_creds(account, opts, 'hpext:cdn')
|
173
173
|
begin
|
174
174
|
@cdn_connection[account] = Fog::CDN.new(opts)
|
175
175
|
write_creds(opts, @cdn_connection[account])
|
176
176
|
rescue Exception => e
|
177
177
|
@authcache.remove(opts)
|
178
|
-
raise Fog::HP::Errors::ServiceError, "Please check your HP Cloud Services account to make sure the '
|
178
|
+
raise Fog::HP::Errors::ServiceError, "Please check your HP Cloud Services account to make sure the 'hpext:cdn' service is activated for the appropriate availability zone.\n Exception: #{e}\n Print the service catalog: hpcloud account:catalog #{account}"
|
179
179
|
end
|
180
180
|
return @cdn_connection[account]
|
181
181
|
end
|
@@ -183,15 +183,15 @@ module HP
|
|
183
183
|
def network
|
184
184
|
account = get_account()
|
185
185
|
return @network_connection[account] unless @network_connection[account].nil?
|
186
|
-
opts = create_options(account, '
|
187
|
-
read_creds(account, opts, '
|
186
|
+
opts = create_options(account, 'network')
|
187
|
+
read_creds(account, opts, 'network')
|
188
188
|
begin
|
189
189
|
opts.delete(:provider)
|
190
190
|
@network_connection[account] = Fog::HP::Network.new(opts)
|
191
191
|
write_creds(opts, @network_connection[account])
|
192
192
|
rescue Exception => e
|
193
193
|
@authcache.remove(opts)
|
194
|
-
raise Fog::HP::Errors::ServiceError, "Please check your HP Cloud Services account to make sure the '
|
194
|
+
raise Fog::HP::Errors::ServiceError, "Please check your HP Cloud Services account to make sure the 'network' service is activated for the appropriate availability zone.\n Exception: #{e}\n Print the service catalog: hpcloud account:catalog #{account}"
|
195
195
|
end
|
196
196
|
return @network_connection[account]
|
197
197
|
end
|
@@ -199,15 +199,15 @@ module HP
|
|
199
199
|
def dns
|
200
200
|
account = get_account()
|
201
201
|
return @dns_connection[account] unless @dns_connection[account].nil?
|
202
|
-
opts = create_options(account, '
|
203
|
-
read_creds(account, opts, '
|
202
|
+
opts = create_options(account, 'hpext:dns')
|
203
|
+
read_creds(account, opts, 'hpext:dns')
|
204
204
|
begin
|
205
205
|
opts.delete(:provider)
|
206
206
|
@dns_connection[account] = Fog::HP::DNS.new(opts)
|
207
207
|
write_creds(opts, @dns_connection[account])
|
208
208
|
rescue Exception => e
|
209
209
|
@authcache.remove(opts)
|
210
|
-
raise Fog::HP::Errors::ServiceError, "Please check your HP Cloud Services account to make sure the '
|
210
|
+
raise Fog::HP::Errors::ServiceError, "Please check your HP Cloud Services account to make sure the 'hpext:dns' service is activated for the appropriate availability zone.\n Exception: #{e}\n Print the service catalog: hpcloud account:catalog #{account}"
|
211
211
|
end
|
212
212
|
return @dns_connection[account]
|
213
213
|
end
|
@@ -215,15 +215,15 @@ module HP
|
|
215
215
|
def lb
|
216
216
|
account = get_account()
|
217
217
|
return @lb_connection[account] unless @lb_connection[account].nil?
|
218
|
-
opts = create_options(account, '
|
219
|
-
read_creds(account, opts, '
|
218
|
+
opts = create_options(account, 'hpext:lbaas')
|
219
|
+
read_creds(account, opts, 'hpext:lbaas')
|
220
220
|
begin
|
221
221
|
opts.delete(:provider)
|
222
222
|
@lb_connection[account] = Fog::HP::LB.new(opts)
|
223
223
|
write_creds(opts, @lb_connection[account])
|
224
224
|
rescue Exception => e
|
225
225
|
@authcache.remove(opts)
|
226
|
-
raise Fog::HP::Errors::ServiceError, "Please check your HP Cloud Services account to make sure the '
|
226
|
+
raise Fog::HP::Errors::ServiceError, "Please check your HP Cloud Services account to make sure the 'hpext:lbaas' service is activated for the appropriate availability zone.\n Exception: #{e}\n Print the service catalog: hpcloud account:catalog #{account}"
|
227
227
|
end
|
228
228
|
return @lb_connection[account]
|
229
229
|
end
|
data/lib/hpcloud/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hpcloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Sanders
|
@@ -293,7 +293,6 @@ files:
|
|
293
293
|
- lib/hpcloud/thor_ext/thor.rb
|
294
294
|
- lib/hpcloud/time_parser.rb
|
295
295
|
- lib/hpcloud/version.rb
|
296
|
-
- lib/hpcloud/version.rb-e
|
297
296
|
- lib/hpcloud/volume_attachment.rb
|
298
297
|
- lib/hpcloud/volume_attachments.rb
|
299
298
|
- lib/hpcloud/volume_helper.rb
|
@@ -339,19 +338,18 @@ require_paths:
|
|
339
338
|
- lib
|
340
339
|
required_ruby_version: !ruby/object:Gem::Requirement
|
341
340
|
requirements:
|
342
|
-
- - '>='
|
341
|
+
- - ! '>='
|
343
342
|
- !ruby/object:Gem::Version
|
344
343
|
version: 1.8.5
|
345
344
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
346
345
|
requirements:
|
347
|
-
- - '>='
|
346
|
+
- - ! '>='
|
348
347
|
- !ruby/object:Gem::Version
|
349
348
|
version: 1.2.0
|
350
349
|
requirements: []
|
351
350
|
rubyforge_project:
|
352
|
-
rubygems_version: 2.
|
351
|
+
rubygems_version: 2.4.3
|
353
352
|
signing_key:
|
354
353
|
specification_version: 4
|
355
354
|
summary: HP Cloud CLI
|
356
355
|
test_files: []
|
357
|
-
has_rdoc:
|
data/lib/hpcloud/version.rb-e
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
#
|
3
|
-
# © Copyright 2013 Hewlett-Packard Development Company, L.P.
|
4
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
-
# of this software and associated documentation files (the "Software"), to deal
|
6
|
-
# in the Software without restriction, including without limitation the rights
|
7
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
-
# copies of the Software, and to permit persons to whom the Software is
|
9
|
-
# furnished to do so, subject to the following conditions:
|
10
|
-
#
|
11
|
-
# The above copyright notice and this permission notice shall be included in all
|
12
|
-
# copies or substantial portions of the Software.
|
13
|
-
#
|
14
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
-
# SOFTWARE.
|
21
|
-
|
22
|
-
module HP
|
23
|
-
module Cloud
|
24
|
-
VERSION = '2.0.9'
|
25
|
-
SHA1 = '822a9667ab3d347565a688052aad5d0d122e2ece'
|
26
|
-
end
|
27
|
-
end
|