Module: Fog::Terremark::Shared

Included in:
Vcloud
Defined in:
lib/rackspace-fog/terremark/parser.rb,
lib/rackspace-fog/terremark/shared.rb,
lib/rackspace-fog/terremark/models/shared/vdc.rb,
lib/rackspace-fog/terremark/models/shared/task.rb,
lib/rackspace-fog/terremark/models/shared/vdcs.rb,
lib/rackspace-fog/terremark/models/shared/tasks.rb,
lib/rackspace-fog/terremark/models/shared/server.rb,
lib/rackspace-fog/terremark/models/shared/address.rb,
lib/rackspace-fog/terremark/models/shared/network.rb,
lib/rackspace-fog/terremark/models/shared/servers.rb,
lib/rackspace-fog/terremark/models/shared/networks.rb,
lib/rackspace-fog/terremark/models/shared/addresses.rb,
lib/rackspace-fog/terremark/requests/shared/get_vdc.rb,
lib/rackspace-fog/terremark/requests/shared/get_task.rb,
lib/rackspace-fog/terremark/requests/shared/get_vapp.rb,
lib/rackspace-fog/terremark/requests/shared/power_on.rb,
lib/rackspace-fog/terremark/requests/shared/power_off.rb,
lib/rackspace-fog/terremark/requests/shared/delete_vapp.rb,
lib/rackspace-fog/terremark/requests/shared/deploy_vapp.rb,
lib/rackspace-fog/terremark/requests/shared/get_catalog.rb,
lib/rackspace-fog/terremark/requests/shared/get_network.rb,
lib/rackspace-fog/terremark/requests/shared/power_reset.rb,
lib/rackspace-fog/terremark/requests/shared/get_public_ip.rb,
lib/rackspace-fog/terremark/requests/shared/get_public_ips.rb,
lib/rackspace-fog/terremark/requests/shared/get_tasks_list.rb,
lib/rackspace-fog/terremark/requests/shared/power_shutdown.rb,
lib/rackspace-fog/terremark/requests/shared/get_network_ips.rb,
lib/rackspace-fog/terremark/requests/shared/add_node_service.rb,
lib/rackspace-fog/terremark/requests/shared/delete_public_ip.rb,
lib/rackspace-fog/terremark/requests/shared/get_catalog_item.rb,
lib/rackspace-fog/terremark/requests/shared/get_organization.rb,
lib/rackspace-fog/terremark/requests/shared/get_node_services.rb,
lib/rackspace-fog/terremark/requests/shared/get_organizations.rb,
lib/rackspace-fog/terremark/requests/shared/get_vapp_template.rb,
lib/rackspace-fog/terremark/requests/shared/delete_node_service.rb,
lib/rackspace-fog/terremark/requests/shared/add_internet_service.rb,
lib/rackspace-fog/terremark/requests/shared/get_internet_services.rb,
lib/rackspace-fog/terremark/requests/shared/create_internet_service.rb,
lib/rackspace-fog/terremark/requests/shared/delete_internet_service.rb,
lib/rackspace-fog/terremark/requests/shared/instantiate_vapp_template.rb

Defined Under Namespace

Modules: Common, Mock, Parser, Real Classes: Address, Addresses, Network, Networks, Server, Servers, Task, Tasks, Vdc, Vdcs

Instance Method Summary collapse

Instance Method Details

#check_shared_options(options) ⇒ Object



223
224
225
226
227
228
229
230
# File 'lib/rackspace-fog/terremark/shared.rb', line 223

def check_shared_options(options)
  %w{ecloud vcloud}.each do |cloud|
    cloud_option_keys = options.keys.select { |key| key.to_s =~ /^terremark_#{cloud}_.*/ }
    unless cloud_option_keys.length == 0 || cloud_option_keys.length == 2
      raise ArgumentError.new("terremark_#{cloud}_username and terremark_#{cloud}_password required to access teremark")
    end
  end
end

#shared_requiresObject



232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/rackspace-fog/terremark/shared.rb', line 232

def shared_requires
  require 'rackspace-fog/terremark/models/shared/address'
  require 'rackspace-fog/terremark/models/shared/addresses'
  require 'rackspace-fog/terremark/models/shared/network'
  require 'rackspace-fog/terremark/models/shared/networks'
  require 'rackspace-fog/terremark/models/shared/server'
  require 'rackspace-fog/terremark/models/shared/servers'
  require 'rackspace-fog/terremark/models/shared/task'
  require 'rackspace-fog/terremark/models/shared/tasks'
  require 'rackspace-fog/terremark/models/shared/vdc'
  require 'rackspace-fog/terremark/models/shared/vdcs'
  require 'rackspace-fog/terremark/parsers/shared/get_catalog'
  require 'rackspace-fog/terremark/parsers/shared/get_catalog_item'
  require 'rackspace-fog/terremark/parsers/shared/get_internet_services'
  require 'rackspace-fog/terremark/parsers/shared/get_network_ips'
  require 'rackspace-fog/terremark/parsers/shared/get_node_services'
  require 'rackspace-fog/terremark/parsers/shared/get_organization'
  require 'rackspace-fog/terremark/parsers/shared/get_organizations'
  require 'rackspace-fog/terremark/parsers/shared/get_public_ips'
  require 'rackspace-fog/terremark/parsers/shared/get_tasks_list'
  require 'rackspace-fog/terremark/parsers/shared/get_vapp_template'
  require 'rackspace-fog/terremark/parsers/shared/get_vdc'
  require 'rackspace-fog/terremark/parsers/shared/instantiate_vapp_template'
  require 'rackspace-fog/terremark/parsers/shared/internet_service'
  require 'rackspace-fog/terremark/parsers/shared/network'
  require 'rackspace-fog/terremark/parsers/shared/node_service'
  require 'rackspace-fog/terremark/parsers/shared/public_ip'
  require 'rackspace-fog/terremark/parsers/shared/task'
  require 'rackspace-fog/terremark/parsers/shared/vapp'
  require 'rackspace-fog/terremark/requests/shared/add_internet_service'
  require 'rackspace-fog/terremark/requests/shared/add_node_service'
  require 'rackspace-fog/terremark/requests/shared/create_internet_service'
  require 'rackspace-fog/terremark/requests/shared/delete_internet_service'
  require 'rackspace-fog/terremark/requests/shared/delete_public_ip'
  require 'rackspace-fog/terremark/requests/shared/delete_node_service'
  require 'rackspace-fog/terremark/requests/shared/delete_vapp'
  require 'rackspace-fog/terremark/requests/shared/deploy_vapp'
  require 'rackspace-fog/terremark/requests/shared/get_catalog'
  require 'rackspace-fog/terremark/requests/shared/get_catalog_item'
  require 'rackspace-fog/terremark/requests/shared/get_internet_services'
  require 'rackspace-fog/terremark/requests/shared/get_network'
  require 'rackspace-fog/terremark/requests/shared/get_network_ips'
  require 'rackspace-fog/terremark/requests/shared/get_node_services'
  require 'rackspace-fog/terremark/requests/shared/get_organization'
  require 'rackspace-fog/terremark/requests/shared/get_organizations'
  require 'rackspace-fog/terremark/requests/shared/get_public_ip'
  require 'rackspace-fog/terremark/requests/shared/get_public_ips'
  require 'rackspace-fog/terremark/requests/shared/get_task'
  require 'rackspace-fog/terremark/requests/shared/get_tasks_list'
  require 'rackspace-fog/terremark/requests/shared/get_vapp'
  require 'rackspace-fog/terremark/requests/shared/get_vapp_template'
  require 'rackspace-fog/terremark/requests/shared/get_vdc'
  require 'rackspace-fog/terremark/requests/shared/instantiate_vapp_template'
  require 'rackspace-fog/terremark/requests/shared/power_off'
  require 'rackspace-fog/terremark/requests/shared/power_on'
  require 'rackspace-fog/terremark/requests/shared/power_reset'
  require 'rackspace-fog/terremark/requests/shared/power_shutdown'
end