Module: Fog::Rackspace::Servers

Defined in:
lib/fog/rackspace/servers.rb,
lib/fog/rackspace/models/servers/image.rb,
lib/fog/rackspace/models/servers/flavor.rb,
lib/fog/rackspace/models/servers/images.rb,
lib/fog/rackspace/models/servers/server.rb,
lib/fog/rackspace/models/servers/flavors.rb,
lib/fog/rackspace/models/servers/servers.rb,
lib/fog/rackspace/requests/servers/list_images.rb,
lib/fog/rackspace/requests/servers/create_image.rb,
lib/fog/rackspace/requests/servers/delete_image.rb,
lib/fog/rackspace/requests/servers/list_flavors.rb,
lib/fog/rackspace/requests/servers/list_servers.rb,
lib/fog/rackspace/requests/servers/create_server.rb,
lib/fog/rackspace/requests/servers/delete_server.rb,
lib/fog/rackspace/requests/servers/reboot_server.rb,
lib/fog/rackspace/requests/servers/update_server.rb,
lib/fog/rackspace/requests/servers/list_addresses.rb,
lib/fog/rackspace/requests/servers/get_image_details.rb,
lib/fog/rackspace/requests/servers/get_flavor_details.rb,
lib/fog/rackspace/requests/servers/get_server_details.rb,
lib/fog/rackspace/requests/servers/list_images_detail.rb,
lib/fog/rackspace/requests/servers/list_flavors_detail.rb,
lib/fog/rackspace/requests/servers/list_servers_detail.rb,
lib/fog/rackspace/requests/servers/list_public_addresses.rb,
lib/fog/rackspace/requests/servers/list_private_addresses.rb

Defined Under Namespace

Classes: Flavor, Flavors, Image, Images, Mock, Real, Server, Servers

Class Method Summary collapse

Class Method Details

.new(options = {}) ⇒ Object


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/fog/rackspace/servers.rb', line 5

def self.new(options={})

  require 'fog/rackspace/models/servers/flavor'
  require 'fog/rackspace/models/servers/flavors'
  require 'fog/rackspace/models/servers/image'
  require 'fog/rackspace/models/servers/images'
  require 'fog/rackspace/models/servers/server'
  require 'fog/rackspace/models/servers/servers'
  require 'fog/rackspace/requests/servers/create_image'
  require 'fog/rackspace/requests/servers/create_server'
  require 'fog/rackspace/requests/servers/delete_image'
  require 'fog/rackspace/requests/servers/delete_server'
  require 'fog/rackspace/requests/servers/get_flavor_details'
  require 'fog/rackspace/requests/servers/get_image_details'
  require 'fog/rackspace/requests/servers/get_server_details'
  require 'fog/rackspace/requests/servers/list_addresses'
  require 'fog/rackspace/requests/servers/list_private_addresses'
  require 'fog/rackspace/requests/servers/list_public_addresses'
  require 'fog/rackspace/requests/servers/list_flavors'
  require 'fog/rackspace/requests/servers/list_flavors_detail'
  require 'fog/rackspace/requests/servers/list_images'
  require 'fog/rackspace/requests/servers/list_images_detail'
  require 'fog/rackspace/requests/servers/list_servers'
  require 'fog/rackspace/requests/servers/list_servers_detail'
  require 'fog/rackspace/requests/servers/reboot_server'
  require 'fog/rackspace/requests/servers/update_server'

  if Fog.mocking?
    Fog::Rackspace::Servers::Mock.new(options)
  else
    Fog::Rackspace::Servers::Real.new(options)
  end
end

.reset_data(keys = Mock.data.keys) ⇒ Object


39
40
41
# File 'lib/fog/rackspace/servers.rb', line 39

def self.reset_data(keys=Mock.data.keys)
  Mock.reset_data(keys)
end