Module: Fog::Terremark::Shared
- Included in:
- Vcloud
- Defined in:
- lib/fog/terremark/shared.rb,
lib/fog/terremark/models/shared/vdc.rb,
lib/fog/terremark/models/shared/task.rb,
lib/fog/terremark/models/shared/vdcs.rb,
lib/fog/terremark/models/shared/image.rb,
lib/fog/terremark/models/shared/tasks.rb,
lib/fog/terremark/models/shared/images.rb,
lib/fog/terremark/models/shared/server.rb,
lib/fog/terremark/models/shared/address.rb,
lib/fog/terremark/models/shared/network.rb,
lib/fog/terremark/models/shared/servers.rb,
lib/fog/terremark/models/shared/networks.rb,
lib/fog/terremark/models/shared/addresses.rb,
lib/fog/terremark/requests/shared/get_vdc.rb,
lib/fog/terremark/requests/shared/get_task.rb,
lib/fog/terremark/requests/shared/get_vapp.rb,
lib/fog/terremark/requests/shared/power_on.rb,
lib/fog/terremark/models/shared/nodeservice.rb,
lib/fog/terremark/requests/shared/power_off.rb,
lib/fog/terremark/models/shared/nodeservices.rb,
lib/fog/terremark/requests/shared/delete_vapp.rb,
lib/fog/terremark/requests/shared/deploy_vapp.rb,
lib/fog/terremark/requests/shared/get_catalog.rb,
lib/fog/terremark/requests/shared/get_network.rb,
lib/fog/terremark/requests/shared/power_reset.rb,
lib/fog/terremark/models/shared/internetservice.rb,
lib/fog/terremark/requests/shared/get_keys_list.rb,
lib/fog/terremark/requests/shared/get_public_ip.rb,
lib/fog/terremark/models/shared/internetservices.rb,
lib/fog/terremark/requests/shared/configure_vapp.rb,
lib/fog/terremark/requests/shared/get_public_ips.rb,
lib/fog/terremark/requests/shared/get_tasks_list.rb,
lib/fog/terremark/requests/shared/power_shutdown.rb,
lib/fog/terremark/requests/shared/get_network_ips.rb,
lib/fog/terremark/requests/shared/add_node_service.rb,
lib/fog/terremark/requests/shared/delete_public_ip.rb,
lib/fog/terremark/requests/shared/get_catalog_item.rb,
lib/fog/terremark/requests/shared/get_organization.rb,
lib/fog/terremark/requests/shared/get_node_services.rb,
lib/fog/terremark/requests/shared/get_organizations.rb,
lib/fog/terremark/requests/shared/get_vapp_template.rb,
lib/fog/terremark/requests/shared/delete_node_service.rb,
lib/fog/terremark/requests/shared/add_internet_service.rb,
lib/fog/terremark/requests/shared/get_internet_services.rb,
lib/fog/terremark/requests/shared/create_internet_service.rb,
lib/fog/terremark/requests/shared/delete_internet_service.rb,
lib/fog/terremark/requests/shared/instantiate_vapp_template.rb
Defined Under Namespace
Modules: Common, Mock, Parser, Real
Classes: Address, Addresses, Image, Images, InternetService, InternetServices, Network, Networks, NodeService, NodeServices, Server, Servers, Task, Tasks, Vdc, Vdcs
Instance Method Summary
collapse
Instance Method Details
#check_shared_options(options) ⇒ Object
226
227
228
229
230
231
232
233
|
# File 'lib/fog/terremark/shared.rb', line 226
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_requires ⇒ Object
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
290
291
292
293
294
295
296
297
298
299
300
301
|
# File 'lib/fog/terremark/shared.rb', line 235
def shared_requires
require 'fog/terremark/models/shared/address'
require 'fog/terremark/models/shared/addresses'
require 'fog/terremark/models/shared/network'
require 'fog/terremark/models/shared/networks'
require 'fog/terremark/models/shared/server'
require 'fog/terremark/models/shared/servers'
require 'fog/terremark/models/shared/image'
require 'fog/terremark/models/shared/images'
require 'fog/terremark/models/shared/task'
require 'fog/terremark/models/shared/tasks'
require 'fog/terremark/models/shared/vdc'
require 'fog/terremark/models/shared/vdcs'
require 'fog/terremark/models/shared/internetservice'
require 'fog/terremark/models/shared/internetservices'
require 'fog/terremark/models/shared/nodeservice'
require 'fog/terremark/models/shared/nodeservices'
require 'fog/terremark/parsers/shared/get_catalog'
require 'fog/terremark/parsers/shared/get_catalog_item'
require 'fog/terremark/parsers/shared/get_internet_services'
require 'fog/terremark/parsers/shared/get_network_ips'
require 'fog/terremark/parsers/shared/get_node_services'
require 'fog/terremark/parsers/shared/get_organization'
require 'fog/terremark/parsers/shared/get_organizations'
require 'fog/terremark/parsers/shared/get_public_ips'
require 'fog/terremark/parsers/shared/get_tasks_list'
require 'fog/terremark/parsers/shared/get_keys_list'
require 'fog/terremark/parsers/shared/get_vapp_template'
require 'fog/terremark/parsers/shared/get_vdc'
require 'fog/terremark/parsers/shared/instantiate_vapp_template'
require 'fog/terremark/parsers/shared/internet_service'
require 'fog/terremark/parsers/shared/network'
require 'fog/terremark/parsers/shared/node_service'
require 'fog/terremark/parsers/shared/public_ip'
require 'fog/terremark/parsers/shared/task'
require 'fog/terremark/parsers/shared/vapp'
require 'fog/terremark/requests/shared/add_internet_service'
require 'fog/terremark/requests/shared/add_node_service'
require 'fog/terremark/requests/shared/create_internet_service'
require 'fog/terremark/requests/shared/delete_internet_service'
require 'fog/terremark/requests/shared/delete_public_ip'
require 'fog/terremark/requests/shared/delete_node_service'
require 'fog/terremark/requests/shared/delete_vapp'
require 'fog/terremark/requests/shared/deploy_vapp'
require 'fog/terremark/requests/shared/get_catalog'
require 'fog/terremark/requests/shared/get_catalog_item'
require 'fog/terremark/requests/shared/get_internet_services'
require 'fog/terremark/requests/shared/get_network'
require 'fog/terremark/requests/shared/get_network_ips'
require 'fog/terremark/requests/shared/get_node_services'
require 'fog/terremark/requests/shared/get_organization'
require 'fog/terremark/requests/shared/get_organizations'
require 'fog/terremark/requests/shared/get_public_ip'
require 'fog/terremark/requests/shared/get_public_ips'
require 'fog/terremark/requests/shared/get_task'
require 'fog/terremark/requests/shared/get_tasks_list'
require 'fog/terremark/requests/shared/get_keys_list'
require 'fog/terremark/requests/shared/get_vapp'
require 'fog/terremark/requests/shared/get_vapp_template'
require 'fog/terremark/requests/shared/get_vdc'
require 'fog/terremark/requests/shared/instantiate_vapp_template'
require 'fog/terremark/requests/shared/configure_vapp'
require 'fog/terremark/requests/shared/power_off'
require 'fog/terremark/requests/shared/power_on'
require 'fog/terremark/requests/shared/power_reset'
require 'fog/terremark/requests/shared/power_shutdown'
end
|