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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fa2af0333822abafe687521a1dd7f837fd13cf5f
4
- data.tar.gz: 54f1f0770e1f9c7c7ebda3f0aad4d062b8997c60
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDhkMTc3Mjg1ZDMzNDliZDQzNGEyMmNjZWZkYmVkMGMwZmY2Y2I0ZA==
5
+ data.tar.gz: !binary |-
6
+ MjBjOTQxOWI2NWRjYmM3OTA1ZDJmMGUzNGRkODI3N2U1ZjMxNGIxZQ==
5
7
  SHA512:
6
- metadata.gz: e62178d7dd8027617fb07d15033afc08941db60b241e85e279755f12a98d96871c7d9a4830960dec1600addbefd7e4f398fae3b04a0880eaaa870f00f3f227c6
7
- data.tar.gz: 646946fee68cc9566460d6f6e0b9da145ef8a7be91fedc14e811c3bb5faa0052993fd4cbe9e6e86c50073381f795d02865ab1e39eed30781ffa235c82535284f
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
 
@@ -121,6 +121,7 @@ module HP
121
121
  return nil if catalog[service.to_sym].nil?
122
122
  keys = []
123
123
  catalog[service.to_sym].keys.each { |x| keys << x.to_s }
124
+ keys.delete("name")
124
125
  return keys.sort.first.to_s
125
126
  end
126
127
  end
@@ -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, 'Object Storage')
119
- read_creds(account, opts, 'Object Storage')
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, 'Compute')
134
+ opts = create_options(account, 'compute')
135
135
  opts[:version] = :v2
136
- read_creds(account, opts, 'Compute')
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 'Compute' service is activated for the appropriate availability zone.\n Exception: #{e}\n Print the service catalog: hpcloud account:catalog #{account}"
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, 'Block Storage')
155
+ opts = create_options(account, 'volume')
156
156
  opts.delete(:provider)
157
- read_creds(account, opts, 'Block Storage')
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 'BlockStorage' service is activated for the appropriate availability zone.\n Exception: #{e}\n Print the service catalog: hpcloud account:catalog #{account}"
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, 'CDN')
172
- read_creds(account, opts, 'CDN')
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 'CDN' service is activated for the appropriate availability zone.\n Exception: #{e}\n Print the service catalog: hpcloud account:catalog #{account}"
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, 'Networking')
187
- read_creds(account, opts, 'Networking')
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 'Network' service is activated for the appropriate availability zone.\n Exception: #{e}\n Print the service catalog: hpcloud account:catalog #{account}"
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, 'DNS')
203
- read_creds(account, opts, 'DNS')
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 'DNS' service is activated for the appropriate availability zone.\n Exception: #{e}\n Print the service catalog: hpcloud account:catalog #{account}"
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, 'Load Balancer')
219
- read_creds(account, opts, 'Load Balancer')
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 'Load Balancer' service is activated for the appropriate availability zone.\n Exception: #{e}\n Print the service catalog: hpcloud account:catalog #{account}"
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
@@ -21,7 +21,7 @@
21
21
 
22
22
  module HP
23
23
  module Cloud
24
- VERSION = '2.0.9'
25
- SHA1 = '1e549911c1f6750859d1e0a44c8f3cbfe394c70c'
24
+ VERSION = '2.0.10'
25
+ SHA1 = 'b6e7cf28f0e37e64c5da4451d5fe67ca132523db'
26
26
  end
27
27
  end
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.9
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.2.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:
@@ -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