1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

consolidate parser loading

This commit is contained in:
geemus (Wesley Beary) 2010-04-13 14:35:30 -07:00
parent 3b55ee9a62
commit f5673d34e0
62 changed files with 42 additions and 116 deletions

View file

@ -21,6 +21,26 @@ module Fog
require 'fog/aws/models/ec2/snapshots'
require 'fog/aws/models/ec2/volume'
require 'fog/aws/models/ec2/volumes'
require 'fog/aws/parsers/ec2/allocate_address'
require 'fog/aws/parsers/ec2/attach_volume'
require 'fog/aws/parsers/ec2/basic'
require 'fog/aws/parsers/ec2/create_key_pair'
require 'fog/aws/parsers/ec2/create_snapshot'
require 'fog/aws/parsers/ec2/create_volume'
require 'fog/aws/parsers/ec2/describe_addresses'
require 'fog/aws/parsers/ec2/describe_availability_zones'
require 'fog/aws/parsers/ec2/describe_images'
require 'fog/aws/parsers/ec2/describe_instances'
require 'fog/aws/parsers/ec2/describe_key_pairs'
require 'fog/aws/parsers/ec2/describe_regions'
require 'fog/aws/parsers/ec2/describe_reserved_instances'
require 'fog/aws/parsers/ec2/describe_security_groups'
require 'fog/aws/parsers/ec2/describe_snapshots'
require 'fog/aws/parsers/ec2/describe_volumes'
require 'fog/aws/parsers/ec2/detach_volume'
require 'fog/aws/parsers/ec2/get_console_output'
require 'fog/aws/parsers/ec2/run_instances'
require 'fog/aws/parsers/ec2/terminate_instances'
require 'fog/aws/requests/ec2/allocate_address'
require 'fog/aws/requests/ec2/associate_address'
require 'fog/aws/requests/ec2/attach_volume'

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/allocate_address'
# Acquire an elastic IP address.
#
# ==== Returns

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/basic'
# Associate an elastic IP address with an instance
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/attach_volume'
# Attach an Amazon EBS volume with a running instance, exposing as specified device
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/basic'
# Add permissions to a security group
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/create_key_pair'
# Create a new key pair
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/basic'
# Create a new security group
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/create_snapshot'
# Create a snapshot of an EBS volume and store it in S3
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/create_volume'
# Create an EBS volume
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/basic'
# Delete a key pair that you own
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/basic'
# Delete a security group that you own
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/basic'
# Delete a snapshot of an EBS volume that you own
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/basic'
# Delete an EBS volume
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/describe_addresses'
# Describe all or specified IP addresses.
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/describe_availability_zones'
# Describe all or specified availability zones
#
# ==== Params

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/describe_images'
# Describe all or specified images.
#
# ==== Params

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/describe_instances'
# Describe all or specified instances
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/describe_key_pairs'
# Describe all or specified key pairs
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/describe_regions'
# Describe all or specified regions
#
# ==== Params

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/describe_reserved_instances'
# Describe all or specified reserved instances
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/describe_security_groups'
# Describe all or specified security groups
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/describe_snapshots'
# Describe all or specified snapshots
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/describe_volumes'
# Describe all or specified volumes.
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/detach_volume'
# Detach an Amazon EBS volume from a running instance
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/basic'
# Disassociate an elastic IP address from its instance (if any)
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/get_console_output'
# Retrieve console output for specified instance
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/basic'
# Reboot specified instances
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/basic'
# Release an elastic IP address.
#
# ==== Returns

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/basic'
# Remove permissions from a security group
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/run_instances'
# Launch specified instances
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module EC2
class Real
require 'fog/aws/parsers/ec2/terminate_instances'
# Terminate specified instances
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module S3
class Real
require 'fog/aws/parsers/s3/copy_object'
# Copy an object from one S3 bucket to another
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module S3
class Real
require 'fog/aws/parsers/s3/get_bucket'
# List information about objects in an S3 bucket
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module S3
class Real
require 'fog/aws/parsers/s3/get_bucket_location'
# Get location constraint for an S3 bucket
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module S3
class Real
require 'fog/aws/parsers/s3/get_request_payment'
# Get configured payer for an S3 bucket
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module S3
class Real
require 'fog/aws/parsers/s3/get_service'
# List information about S3 buckets for authorized user
#
# ==== Returns

View file

@ -3,8 +3,6 @@ module Fog
module SimpleDB
class Real
require 'fog/aws/parsers/simpledb/domain_metadata'
# List metadata for SimpleDB domain
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module SimpleDB
class Real
require 'fog/aws/parsers/simpledb/get_attributes'
# List metadata for SimpleDB domain
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module SimpleDB
class Real
require 'fog/aws/parsers/simpledb/list_domains'
# List SimpleDB domains
#
# ==== Parameters

View file

@ -3,8 +3,6 @@ module Fog
module SimpleDB
class Real
require 'fog/aws/parsers/simpledb/select'
# Select item data from SimpleDB
#
# ==== Parameters

View file

@ -9,6 +9,11 @@ module Fog
require 'fog/aws/models/s3/directory'
require 'fog/aws/models/s3/files'
require 'fog/aws/models/s3/file'
require 'fog/aws/parsers/s3/copy_object'
require 'fog/aws/parsers/s3/get_bucket'
require 'fog/aws/parsers/s3/get_bucket_location'
require 'fog/aws/parsers/s3/get_request_payment'
require 'fog/aws/parsers/s3/get_service'
require 'fog/aws/requests/s3/copy_object'
require 'fog/aws/requests/s3/delete_bucket'
require 'fog/aws/requests/s3/delete_object'

View file

@ -5,6 +5,10 @@ module Fog
def self.new(options={})
unless @required
require 'fog/aws/parsers/simpledb/domain_metadata'
require 'fog/aws/parsers/simpledb/get_attributes'
require 'fog/aws/parsers/simpledb/list_domains'
require 'fog/aws/parsers/simpledb/select'
require 'fog/aws/requests/simpledb/batch_put_attributes'
require 'fog/aws/requests/simpledb/create_domain'
require 'fog/aws/requests/simpledb/delete_attributes'

View file

@ -4,6 +4,19 @@ module Fog
def self.new(options={})
unless @required
require 'fog/terremark/parsers/get_catalog'
require 'fog/terremark/parsers/get_catalog_item'
require 'fog/terremark/parsers/get_organization'
require 'fog/terremark/parsers/get_organizations'
require 'fog/terremark/parsers/get_public_ips'
require 'fog/terremark/parsers/get_tasks_list'
require 'fog/terremark/parsers/get_vapp_template'
require 'fog/terremark/parsers/get_vdc'
require 'fog/terremark/parsers/instantiate_vapp_template'
require 'fog/terremark/parsers/internet_service'
require 'fog/terremark/parsers/node_service'
require 'fog/terremark/parsers/task'
require 'fog/terremark/parsers/vapp'
require 'fog/terremark/requests/add_internet_service'
require 'fog/terremark/requests/add_node_service'
require 'fog/terremark/requests/create_internet_service'

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/internet_service'
# Reserve requested resources and deploy vApp
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/node_service'
# Reserve requested resources and deploy vApp
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/internet_service'
# Reserve requested resources and deploy vApp
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/task'
# Reserve requested resources and deploy vApp
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/get_catalog'
# Get details of a catalog
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/get_catalog_item'
# Get details of a catalog item
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/get_organization'
# Get details of an organization
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/get_organizations'
# Get list of organizations
#
# ==== Returns

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/get_public_ips'
# Get list of public ips
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/task'
# Get details of a task
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/get_tasks_list'
# Get list of tasks
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/vapp'
# Get details of a vapp
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/get_vapp_template'
# Get details of a vapp template
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/get_vdc'
# Get details of a vdc
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/instantiate_vapp_template'
# Instatiate a vapp template
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/task'
# Power off a vapp
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/task'
# Power on a vapp
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/task'
# Reset a vapp
#
# ==== Parameters

View file

@ -2,8 +2,6 @@ module Fog
module Terremark
class Real
require 'fog/terremark/parsers/task'
# Shutdown a vapp
#
# ==== Parameters