fog-aws 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fog/aws.rb +205 -28
- data/lib/fog/aws/auto_scaling.rb +0 -2
- data/lib/fog/aws/beanstalk.rb +0 -2
- data/lib/fog/aws/cdn.rb +0 -2
- data/lib/fog/aws/cloud_formation.rb +0 -2
- data/lib/fog/aws/cloud_watch.rb +0 -2
- data/lib/fog/aws/compute.rb +0 -2
- data/lib/fog/aws/credential_fetcher.rb +0 -2
- data/lib/fog/aws/data_pipeline.rb +0 -2
- data/lib/fog/aws/dns.rb +0 -2
- data/lib/fog/aws/dynamodb.rb +0 -2
- data/lib/fog/aws/elasticache.rb +0 -2
- data/lib/fog/aws/elb.rb +0 -2
- data/lib/fog/aws/emr.rb +0 -2
- data/lib/fog/aws/errors.rb +14 -0
- data/lib/fog/aws/federation.rb +0 -2
- data/lib/fog/aws/glacier.rb +0 -2
- data/lib/fog/aws/iam.rb +0 -2
- data/lib/fog/aws/mock.rb +170 -0
- data/lib/fog/aws/models/auto_scaling/activity.rb +0 -2
- data/lib/fog/aws/models/auto_scaling/configuration.rb +0 -2
- data/lib/fog/aws/models/auto_scaling/group.rb +0 -2
- data/lib/fog/aws/models/auto_scaling/instance.rb +0 -2
- data/lib/fog/aws/models/auto_scaling/policy.rb +0 -2
- data/lib/fog/aws/models/beanstalk/application.rb +0 -2
- data/lib/fog/aws/models/beanstalk/applications.rb +0 -1
- data/lib/fog/aws/models/beanstalk/environment.rb +0 -2
- data/lib/fog/aws/models/beanstalk/environments.rb +0 -1
- data/lib/fog/aws/models/beanstalk/event.rb +0 -2
- data/lib/fog/aws/models/beanstalk/events.rb +0 -1
- data/lib/fog/aws/models/beanstalk/template.rb +0 -2
- data/lib/fog/aws/models/beanstalk/templates.rb +0 -1
- data/lib/fog/aws/models/beanstalk/version.rb +0 -2
- data/lib/fog/aws/models/beanstalk/versions.rb +0 -1
- data/lib/fog/aws/models/cdn/distribution.rb +0 -1
- data/lib/fog/aws/models/cdn/distribution_helper.rb +0 -2
- data/lib/fog/aws/models/cdn/distributions.rb +0 -1
- data/lib/fog/aws/models/cdn/distributions_helper.rb +0 -2
- data/lib/fog/aws/models/cdn/invalidation.rb +0 -2
- data/lib/fog/aws/models/cdn/invalidations.rb +0 -1
- data/lib/fog/aws/models/cdn/streaming_distribution.rb +0 -1
- data/lib/fog/aws/models/cdn/streaming_distributions.rb +0 -1
- data/lib/fog/aws/models/cloud_watch/alarm.rb +0 -2
- data/lib/fog/aws/models/cloud_watch/alarm_data.rb +0 -1
- data/lib/fog/aws/models/cloud_watch/alarm_datum.rb +0 -2
- data/lib/fog/aws/models/cloud_watch/alarm_histories.rb +0 -1
- data/lib/fog/aws/models/cloud_watch/alarm_history.rb +0 -2
- data/lib/fog/aws/models/cloud_watch/alarms.rb +0 -1
- data/lib/fog/aws/models/cloud_watch/metric.rb +0 -2
- data/lib/fog/aws/models/cloud_watch/metric_statistic.rb +0 -2
- data/lib/fog/aws/models/cloud_watch/metric_statistics.rb +0 -1
- data/lib/fog/aws/models/cloud_watch/metrics.rb +0 -1
- data/lib/fog/aws/models/compute/address.rb +0 -2
- data/lib/fog/aws/models/compute/addresses.rb +0 -1
- data/lib/fog/aws/models/compute/dhcp_option.rb +0 -2
- data/lib/fog/aws/models/compute/dhcp_options.rb +0 -1
- data/lib/fog/aws/models/compute/flavor.rb +0 -2
- data/lib/fog/aws/models/compute/flavors.rb +0 -1
- data/lib/fog/aws/models/compute/image.rb +0 -2
- data/lib/fog/aws/models/compute/images.rb +0 -1
- data/lib/fog/aws/models/compute/internet_gateway.rb +0 -2
- data/lib/fog/aws/models/compute/internet_gateways.rb +0 -1
- data/lib/fog/aws/models/compute/key_pair.rb +0 -2
- data/lib/fog/aws/models/compute/key_pairs.rb +0 -1
- data/lib/fog/aws/models/compute/network_acl.rb +0 -2
- data/lib/fog/aws/models/compute/network_acls.rb +0 -1
- data/lib/fog/aws/models/compute/network_interface.rb +0 -2
- data/lib/fog/aws/models/compute/network_interfaces.rb +0 -1
- data/lib/fog/aws/models/compute/route_table.rb +0 -2
- data/lib/fog/aws/models/compute/route_tables.rb +0 -1
- data/lib/fog/aws/models/compute/security_group.rb +0 -2
- data/lib/fog/aws/models/compute/security_groups.rb +0 -1
- data/lib/fog/aws/models/compute/servers.rb +1 -2
- data/lib/fog/aws/models/compute/snapshot.rb +0 -2
- data/lib/fog/aws/models/compute/snapshots.rb +0 -1
- data/lib/fog/aws/models/compute/spot_requests.rb +0 -1
- data/lib/fog/aws/models/compute/subnet.rb +0 -2
- data/lib/fog/aws/models/compute/subnets.rb +0 -1
- data/lib/fog/aws/models/compute/tag.rb +0 -2
- data/lib/fog/aws/models/compute/tags.rb +0 -1
- data/lib/fog/aws/models/compute/volume.rb +0 -2
- data/lib/fog/aws/models/compute/volumes.rb +0 -1
- data/lib/fog/aws/models/compute/vpc.rb +0 -2
- data/lib/fog/aws/models/compute/vpcs.rb +0 -1
- data/lib/fog/aws/models/data_pipeline/pipeline.rb +0 -2
- data/lib/fog/aws/models/data_pipeline/pipelines.rb +0 -1
- data/lib/fog/aws/models/dns/record.rb +0 -2
- data/lib/fog/aws/models/dns/records.rb +0 -1
- data/lib/fog/aws/models/dns/zone.rb +0 -1
- data/lib/fog/aws/models/dns/zones.rb +0 -1
- data/lib/fog/aws/models/elasticache/cluster.rb +0 -2
- data/lib/fog/aws/models/elasticache/clusters.rb +0 -1
- data/lib/fog/aws/models/elasticache/parameter_group.rb +0 -2
- data/lib/fog/aws/models/elasticache/parameter_groups.rb +0 -1
- data/lib/fog/aws/models/elasticache/security_group.rb +0 -2
- data/lib/fog/aws/models/elasticache/security_groups.rb +0 -1
- data/lib/fog/aws/models/elasticache/subnet_group.rb +0 -2
- data/lib/fog/aws/models/elasticache/subnet_groups.rb +0 -1
- data/lib/fog/aws/models/elb/backend_server_description.rb +0 -1
- data/lib/fog/aws/models/elb/listener.rb +0 -1
- data/lib/fog/aws/models/elb/load_balancer.rb +0 -1
- data/lib/fog/aws/models/elb/policy.rb +0 -1
- data/lib/fog/aws/models/glacier/archive.rb +0 -2
- data/lib/fog/aws/models/glacier/archives.rb +0 -1
- data/lib/fog/aws/models/glacier/job.rb +0 -2
- data/lib/fog/aws/models/glacier/jobs.rb +0 -1
- data/lib/fog/aws/models/glacier/vault.rb +0 -1
- data/lib/fog/aws/models/glacier/vaults.rb +0 -1
- data/lib/fog/aws/models/iam/access_key.rb +0 -2
- data/lib/fog/aws/models/iam/access_keys.rb +0 -1
- data/lib/fog/aws/models/iam/policies.rb +0 -1
- data/lib/fog/aws/models/iam/policy.rb +0 -2
- data/lib/fog/aws/models/iam/role.rb +0 -2
- data/lib/fog/aws/models/iam/roles.rb +0 -1
- data/lib/fog/aws/models/iam/user.rb +0 -2
- data/lib/fog/aws/models/iam/users.rb +0 -1
- data/lib/fog/aws/models/rds/event_subscription.rb +0 -2
- data/lib/fog/aws/models/rds/event_subscriptions.rb +0 -1
- data/lib/fog/aws/models/rds/instance_option.rb +0 -2
- data/lib/fog/aws/models/rds/instance_options.rb +0 -1
- data/lib/fog/aws/models/rds/log_file.rb +0 -2
- data/lib/fog/aws/models/rds/log_files.rb +0 -1
- data/lib/fog/aws/models/rds/parameter.rb +0 -2
- data/lib/fog/aws/models/rds/parameter_group.rb +0 -2
- data/lib/fog/aws/models/rds/parameter_groups.rb +0 -1
- data/lib/fog/aws/models/rds/parameters.rb +0 -1
- data/lib/fog/aws/models/rds/security_group.rb +0 -3
- data/lib/fog/aws/models/rds/security_groups.rb +0 -1
- data/lib/fog/aws/models/rds/server.rb +0 -2
- data/lib/fog/aws/models/rds/servers.rb +0 -1
- data/lib/fog/aws/models/rds/snapshot.rb +0 -2
- data/lib/fog/aws/models/rds/snapshots.rb +0 -1
- data/lib/fog/aws/models/rds/subnet_group.rb +0 -2
- data/lib/fog/aws/models/rds/subnet_groups.rb +0 -1
- data/lib/fog/aws/models/sns/subscriptions.rb +0 -1
- data/lib/fog/aws/models/sns/topic.rb +0 -2
- data/lib/fog/aws/models/sns/topics.rb +0 -1
- data/lib/fog/aws/models/storage/directories.rb +0 -1
- data/lib/fog/aws/models/storage/directory.rb +0 -1
- data/lib/fog/aws/models/storage/file.rb +8 -5
- data/lib/fog/aws/models/storage/files.rb +0 -1
- data/lib/fog/aws/models/storage/version.rb +0 -2
- data/lib/fog/aws/models/storage/versions.rb +0 -1
- data/lib/fog/aws/parsers/compute/associate_route_table.rb +0 -0
- data/lib/fog/aws/parsers/compute/create_route_table.rb +0 -0
- data/lib/fog/aws/parsers/compute/describe_route_tables.rb +0 -0
- data/lib/fog/aws/parsers/compute/describe_spot_price_history.rb +1 -1
- data/lib/fog/aws/rds.rb +16 -2
- data/lib/fog/aws/redshift.rb +0 -2
- data/lib/fog/aws/requests/compute/associate_route_table.rb +0 -0
- data/lib/fog/aws/requests/compute/create_route.rb +0 -0
- data/lib/fog/aws/requests/compute/create_route_table.rb +0 -0
- data/lib/fog/aws/requests/compute/delete_route.rb +0 -0
- data/lib/fog/aws/requests/compute/delete_route_table.rb +0 -0
- data/lib/fog/aws/requests/compute/describe_availability_zones.rb +3 -0
- data/lib/fog/aws/requests/compute/describe_route_tables.rb +0 -0
- data/lib/fog/aws/requests/compute/describe_spot_price_history.rb +27 -1
- data/lib/fog/aws/requests/compute/disassociate_route_table.rb +0 -0
- data/lib/fog/aws/requests/compute/replace_route.rb +0 -0
- data/lib/fog/aws/requests/dns/change_resource_record_sets.rb +3 -2
- data/lib/fog/aws/requests/rds/create_db_snapshot.rb +1 -0
- data/lib/fog/aws/requests/rds/delete_db_instance.rb +20 -14
- data/lib/fog/aws/requests/rds/describe_db_engine_versions.rb +8 -1
- data/lib/fog/aws/requests/rds/describe_db_instances.rb +2 -3
- data/lib/fog/aws/requests/storage/post_object_hidden_fields.rb +9 -3
- data/lib/fog/aws/ses.rb +0 -2
- data/lib/fog/aws/signaturev4.rb +2 -3
- data/lib/fog/aws/simpledb.rb +0 -2
- data/lib/fog/aws/sns.rb +0 -2
- data/lib/fog/aws/sqs.rb +0 -2
- data/lib/fog/aws/storage.rb +27 -17
- data/lib/fog/aws/sts.rb +0 -2
- data/lib/fog/aws/version.rb +1 -1
- data/tests/models/rds/server_tests.rb +4 -3
- data/tests/requests/compute/spot_price_history_tests.rb +2 -1
- data/tests/requests/dns/change_resource_record_sets_tests.rb +10 -0
- data/tests/requests/rds/db_engine_versions.rb +7 -0
- data/tests/requests/rds/helper.rb +14 -0
- metadata +6 -5
- data/lib/fog/aws/core.rb +0 -344
- data/lib/fog/aws/parsers/.DS_Store +0 -0
- data/lib/fog/aws/requests/.DS_Store +0 -0
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'fog/core/collection'
|
2
1
|
require 'fog/aws/models/compute/server'
|
3
2
|
|
4
3
|
module Fog
|
@@ -195,7 +194,7 @@ module Fog
|
|
195
194
|
|
196
195
|
# make sure port 22 is open in the first security group
|
197
196
|
authorized = security_group.ip_permissions.find do |ip_permission|
|
198
|
-
ip_permission['ipRanges'].
|
197
|
+
ip_permission['ipRanges'].find { |ip_range| ip_range['cidrIp'] == '0.0.0.0/0' } &&
|
199
198
|
ip_permission['fromPort'] == 22 &&
|
200
199
|
ip_permission['ipProtocol'] == 'tcp' &&
|
201
200
|
ip_permission['toPort'] == 22
|