fog 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.21
1
+ 0.0.22
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fog}
8
- s.version = "0.0.21"
8
+ s.version = "0.0.22"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["geemus (Wesley Beary)"]
12
- s.date = %q{2009-10-15}
12
+ s.date = %q{2009-10-16}
13
13
  s.default_executable = %q{fog}
14
14
  s.description = %q{brings clouds to you}
15
15
  s.email = %q{me@geemus.com}
@@ -146,11 +146,11 @@ Gem::Specification.new do |s|
146
146
  "lib/fog/rackspace/requests/servers/create_server.rb",
147
147
  "lib/fog/rackspace/requests/servers/delete_image.rb",
148
148
  "lib/fog/rackspace/requests/servers/delete_server.rb",
149
- "lib/fog/rackspace/requests/servers/get_flavors.rb",
150
- "lib/fog/rackspace/requests/servers/get_images.rb",
151
149
  "lib/fog/rackspace/requests/servers/get_server_details.rb",
152
- "lib/fog/rackspace/requests/servers/get_servers.rb",
153
- "lib/fog/rackspace/requests/servers/get_servers_details.rb",
150
+ "lib/fog/rackspace/requests/servers/list_flavors.rb",
151
+ "lib/fog/rackspace/requests/servers/list_images.rb",
152
+ "lib/fog/rackspace/requests/servers/list_servers.rb",
153
+ "lib/fog/rackspace/requests/servers/list_servers_details.rb",
154
154
  "lib/fog/rackspace/servers.rb",
155
155
  "lib/fog/response.rb",
156
156
  "spec/aws/models/ec2/address_spec.rb",
@@ -225,11 +225,11 @@ Gem::Specification.new do |s|
225
225
  "spec/rackspace/requests/files/head_containers_spec.rb",
226
226
  "spec/rackspace/requests/servers/create_server_spec.rb",
227
227
  "spec/rackspace/requests/servers/delete_server_spec.rb",
228
- "spec/rackspace/requests/servers/get_flavors_spec.rb",
229
- "spec/rackspace/requests/servers/get_images_spec.rb",
230
228
  "spec/rackspace/requests/servers/get_server_details_spec.rb",
231
- "spec/rackspace/requests/servers/get_servers_details_spec.rb",
232
- "spec/rackspace/requests/servers/get_servers_spec.rb",
229
+ "spec/rackspace/requests/servers/list_flavors_spec.rb",
230
+ "spec/rackspace/requests/servers/list_images_spec.rb",
231
+ "spec/rackspace/requests/servers/list_servers_details_spec.rb",
232
+ "spec/rackspace/requests/servers/list_servers_spec.rb",
233
233
  "spec/spec.opts",
234
234
  "spec/spec_helper.rb"
235
235
  ]
@@ -311,11 +311,11 @@ Gem::Specification.new do |s|
311
311
  "spec/rackspace/requests/files/head_containers_spec.rb",
312
312
  "spec/rackspace/requests/servers/create_server_spec.rb",
313
313
  "spec/rackspace/requests/servers/delete_server_spec.rb",
314
- "spec/rackspace/requests/servers/get_flavors_spec.rb",
315
- "spec/rackspace/requests/servers/get_images_spec.rb",
316
314
  "spec/rackspace/requests/servers/get_server_details_spec.rb",
317
- "spec/rackspace/requests/servers/get_servers_details_spec.rb",
318
- "spec/rackspace/requests/servers/get_servers_spec.rb",
315
+ "spec/rackspace/requests/servers/list_flavors_spec.rb",
316
+ "spec/rackspace/requests/servers/list_images_spec.rb",
317
+ "spec/rackspace/requests/servers/list_servers_details_spec.rb",
318
+ "spec/rackspace/requests/servers/list_servers_spec.rb",
319
319
  "spec/spec_helper.rb"
320
320
  ]
321
321
 
@@ -9,7 +9,7 @@ module Fog
9
9
  class Servers < Fog::Collection
10
10
 
11
11
  def all
12
- data = connection.get_servers_details.body
12
+ data = connection.list_servers_details.body
13
13
  servers = Fog::Rackspace::Servers::Servers.new({
14
14
  :connection => connection
15
15
  })
@@ -13,7 +13,7 @@ unless Fog.mocking?
13
13
  def create_image(server_id, options = {})
14
14
  data = {
15
15
  'image' => {
16
- "serverId" => server_id
16
+ 'serverId' => server_id
17
17
  }
18
18
  }
19
19
  if options['name']
@@ -13,7 +13,7 @@ unless Fog.mocking?
13
13
  # * 'name'<~String> - Name of the flavor
14
14
  # * 'ram'<~Integer> - Amount of ram for the flavor
15
15
  # * 'disk'<~Integer> - Amount of diskspace for the flavor
16
- def get_flavors
16
+ def list_flavors
17
17
  request(
18
18
  :expects => 200,
19
19
  :method => 'GET',
@@ -31,7 +31,7 @@ else
31
31
  module Rackspace
32
32
  class Servers
33
33
 
34
- def get_flavors
34
+ def list_flavors
35
35
  end
36
36
 
37
37
  end
@@ -14,7 +14,7 @@ unless Fog.mocking?
14
14
  # * 'updated'<~String> - Last update timestamp for image
15
15
  # * 'created'<~String> - Creation timestamp for image
16
16
  # * 'status'<~String> - Status of image
17
- def get_images
17
+ def list_images
18
18
  request(
19
19
  :expects => 200,
20
20
  :method => 'GET',
@@ -32,7 +32,7 @@ else
32
32
  module Rackspace
33
33
  class Servers
34
34
 
35
- def get_images
35
+ def list_images
36
36
  end
37
37
 
38
38
  end
@@ -12,7 +12,7 @@ unless Fog.mocking?
12
12
  # * 'servers'<~Array>:
13
13
  # * 'id'<~Integer> - Id of server
14
14
  # * 'name<~String> - Name of server
15
- def get_servers
15
+ def list_servers
16
16
  request(
17
17
  :expects => 200,
18
18
  :method => 'GET',
@@ -30,7 +30,7 @@ else
30
30
  module Rackspace
31
31
  class Servers
32
32
 
33
- def get_servers
33
+ def list_servers
34
34
  end
35
35
 
36
36
  end
@@ -21,7 +21,7 @@ unless Fog.mocking?
21
21
  # * 'public'<~Array> - public address strings
22
22
  # * 'private'<~Array> - private address strings
23
23
  # * 'metadata'<~Hash> - metadata
24
- def get_servers_details
24
+ def list_servers_details
25
25
  request(
26
26
  :expects => [200, 203],
27
27
  :method => 'GET',
@@ -39,7 +39,7 @@ else
39
39
  module Rackspace
40
40
  class Servers
41
41
 
42
- def get_servers_details
42
+ def list_servers_details
43
43
  end
44
44
 
45
45
  end
@@ -10,11 +10,11 @@ module Fog
10
10
  load "fog/rackspace/requests/servers/create_server.rb"
11
11
  load "fog/rackspace/requests/servers/delete_image.rb"
12
12
  load "fog/rackspace/requests/servers/delete_server.rb"
13
- load "fog/rackspace/requests/servers/get_flavors.rb"
14
- load "fog/rackspace/requests/servers/get_images.rb"
15
13
  load "fog/rackspace/requests/servers/get_server_details.rb"
16
- load "fog/rackspace/requests/servers/get_servers.rb"
17
- load "fog/rackspace/requests/servers/get_servers_details.rb"
14
+ load "fog/rackspace/requests/servers/list_flavors.rb"
15
+ load "fog/rackspace/requests/servers/list_images.rb"
16
+ load "fog/rackspace/requests/servers/list_servers.rb"
17
+ load "fog/rackspace/requests/servers/list_servers_details.rb"
18
18
  end
19
19
 
20
20
  def initialize(options={})
@@ -10,7 +10,7 @@ describe 'Rackspace::Servers.create_server' do
10
10
  p data
11
11
  while true do
12
12
  sleep(1)
13
- details = servers.get_servers_details.body
13
+ details = servers.list_servers_details.body
14
14
  p details['servers'].first['progress']
15
15
  break if details['servers'].first['status'] == 'ACTIVE'
16
16
  end
@@ -1,10 +1,10 @@
1
1
  require File.dirname(__FILE__) + '/../../../spec_helper'
2
2
 
3
- describe 'Rackspace::Servers.get_images' do
3
+ describe 'Rackspace::Servers.list_flavors' do
4
4
  describe 'success' do
5
5
 
6
6
  it "should return proper attributes" do
7
- p servers.get_images
7
+ p servers.list_flavors
8
8
  end
9
9
 
10
10
  end
@@ -1,10 +1,10 @@
1
1
  require File.dirname(__FILE__) + '/../../../spec_helper'
2
2
 
3
- describe 'Rackspace::Servers.get_flavors' do
3
+ describe 'Rackspace::Servers.list_images' do
4
4
  describe 'success' do
5
5
 
6
6
  it "should return proper attributes" do
7
- p servers.get_flavors
7
+ p servers.list_images
8
8
  end
9
9
 
10
10
  end
@@ -1,10 +1,10 @@
1
1
  require File.dirname(__FILE__) + '/../../../spec_helper'
2
2
 
3
- describe 'Rackspace::Servers.get_servers_details' do
3
+ describe 'Rackspace::Servers.list_servers_details' do
4
4
  describe 'success' do
5
5
 
6
6
  it "should return proper attributes" do
7
- p servers.get_servers_details
7
+ p servers.list_servers_details
8
8
  end
9
9
 
10
10
  end
@@ -1,10 +1,10 @@
1
1
  require File.dirname(__FILE__) + '/../../../spec_helper'
2
2
 
3
- describe 'Rackspace::Servers.get_servers' do
3
+ describe 'Rackspace::Servers.list_servers' do
4
4
  describe 'success' do
5
5
 
6
6
  it "should return proper attributes" do
7
- p servers.get_servers
7
+ p servers.list_servers
8
8
  end
9
9
 
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus (Wesley Beary)
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-15 00:00:00 -07:00
12
+ date: 2009-10-16 00:00:00 -07:00
13
13
  default_executable: fog
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -179,11 +179,11 @@ files:
179
179
  - lib/fog/rackspace/requests/servers/create_server.rb
180
180
  - lib/fog/rackspace/requests/servers/delete_image.rb
181
181
  - lib/fog/rackspace/requests/servers/delete_server.rb
182
- - lib/fog/rackspace/requests/servers/get_flavors.rb
183
- - lib/fog/rackspace/requests/servers/get_images.rb
184
182
  - lib/fog/rackspace/requests/servers/get_server_details.rb
185
- - lib/fog/rackspace/requests/servers/get_servers.rb
186
- - lib/fog/rackspace/requests/servers/get_servers_details.rb
183
+ - lib/fog/rackspace/requests/servers/list_flavors.rb
184
+ - lib/fog/rackspace/requests/servers/list_images.rb
185
+ - lib/fog/rackspace/requests/servers/list_servers.rb
186
+ - lib/fog/rackspace/requests/servers/list_servers_details.rb
187
187
  - lib/fog/rackspace/servers.rb
188
188
  - lib/fog/response.rb
189
189
  - spec/aws/models/ec2/address_spec.rb
@@ -258,11 +258,11 @@ files:
258
258
  - spec/rackspace/requests/files/head_containers_spec.rb
259
259
  - spec/rackspace/requests/servers/create_server_spec.rb
260
260
  - spec/rackspace/requests/servers/delete_server_spec.rb
261
- - spec/rackspace/requests/servers/get_flavors_spec.rb
262
- - spec/rackspace/requests/servers/get_images_spec.rb
263
261
  - spec/rackspace/requests/servers/get_server_details_spec.rb
264
- - spec/rackspace/requests/servers/get_servers_details_spec.rb
265
- - spec/rackspace/requests/servers/get_servers_spec.rb
262
+ - spec/rackspace/requests/servers/list_flavors_spec.rb
263
+ - spec/rackspace/requests/servers/list_images_spec.rb
264
+ - spec/rackspace/requests/servers/list_servers_details_spec.rb
265
+ - spec/rackspace/requests/servers/list_servers_spec.rb
266
266
  - spec/spec.opts
267
267
  - spec/spec_helper.rb
268
268
  has_rdoc: true
@@ -365,9 +365,9 @@ test_files:
365
365
  - spec/rackspace/requests/files/head_containers_spec.rb
366
366
  - spec/rackspace/requests/servers/create_server_spec.rb
367
367
  - spec/rackspace/requests/servers/delete_server_spec.rb
368
- - spec/rackspace/requests/servers/get_flavors_spec.rb
369
- - spec/rackspace/requests/servers/get_images_spec.rb
370
368
  - spec/rackspace/requests/servers/get_server_details_spec.rb
371
- - spec/rackspace/requests/servers/get_servers_details_spec.rb
372
- - spec/rackspace/requests/servers/get_servers_spec.rb
369
+ - spec/rackspace/requests/servers/list_flavors_spec.rb
370
+ - spec/rackspace/requests/servers/list_images_spec.rb
371
+ - spec/rackspace/requests/servers/list_servers_details_spec.rb
372
+ - spec/rackspace/requests/servers/list_servers_spec.rb
373
373
  - spec/spec_helper.rb