revans_right_aws 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gemtest +0 -0
- data/History.txt +284 -0
- data/Manifest.txt +50 -0
- data/README.txt +167 -0
- data/Rakefile +110 -0
- data/lib/acf/right_acf_interface.rb +485 -0
- data/lib/acf/right_acf_origin_access_identities.rb +230 -0
- data/lib/acf/right_acf_streaming_interface.rb +236 -0
- data/lib/acw/right_acw_interface.rb +249 -0
- data/lib/as/right_as_interface.rb +699 -0
- data/lib/awsbase/benchmark_fix.rb +39 -0
- data/lib/awsbase/right_awsbase.rb +978 -0
- data/lib/awsbase/support.rb +115 -0
- data/lib/ec2/right_ec2.rb +395 -0
- data/lib/ec2/right_ec2_ebs.rb +452 -0
- data/lib/ec2/right_ec2_images.rb +373 -0
- data/lib/ec2/right_ec2_instances.rb +755 -0
- data/lib/ec2/right_ec2_monitoring.rb +70 -0
- data/lib/ec2/right_ec2_reserved_instances.rb +170 -0
- data/lib/ec2/right_ec2_security_groups.rb +277 -0
- data/lib/ec2/right_ec2_spot_instances.rb +399 -0
- data/lib/ec2/right_ec2_vpc.rb +571 -0
- data/lib/elb/right_elb_interface.rb +496 -0
- data/lib/rds/right_rds_interface.rb +998 -0
- data/lib/right_aws.rb +83 -0
- data/lib/s3/right_s3.rb +1126 -0
- data/lib/s3/right_s3_interface.rb +1199 -0
- data/lib/sdb/active_sdb.rb +1122 -0
- data/lib/sdb/right_sdb_interface.rb +721 -0
- data/lib/sqs/right_sqs.rb +388 -0
- data/lib/sqs/right_sqs_gen2.rb +343 -0
- data/lib/sqs/right_sqs_gen2_interface.rb +524 -0
- data/lib/sqs/right_sqs_interface.rb +594 -0
- data/test/acf/test_helper.rb +2 -0
- data/test/acf/test_right_acf.rb +138 -0
- data/test/ec2/test_helper.rb +2 -0
- data/test/ec2/test_right_ec2.rb +108 -0
- data/test/http_connection.rb +87 -0
- data/test/rds/test_helper.rb +2 -0
- data/test/rds/test_right_rds.rb +120 -0
- data/test/s3/test_helper.rb +2 -0
- data/test/s3/test_right_s3.rb +421 -0
- data/test/s3/test_right_s3_stubbed.rb +97 -0
- data/test/sdb/test_active_sdb.rb +357 -0
- data/test/sdb/test_helper.rb +3 -0
- data/test/sdb/test_right_sdb.rb +253 -0
- data/test/sqs/test_helper.rb +2 -0
- data/test/sqs/test_right_sqs.rb +291 -0
- data/test/sqs/test_right_sqs_gen2.rb +264 -0
- data/test/test_credentials.rb +37 -0
- data/test/ts_right_aws.rb +14 -0
- metadata +169 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
class TestCredentials
|
2
|
+
|
3
|
+
@@aws_access_key_id = nil
|
4
|
+
@@aws_secret_access_key = nil
|
5
|
+
@@account_number = nil
|
6
|
+
|
7
|
+
def self.aws_access_key_id
|
8
|
+
@@aws_access_key_id
|
9
|
+
end
|
10
|
+
def self.aws_access_key_id=(newval)
|
11
|
+
@@aws_access_key_id = newval
|
12
|
+
end
|
13
|
+
def self.account_number
|
14
|
+
@@account_number
|
15
|
+
end
|
16
|
+
def self.account_number=(newval)
|
17
|
+
@@account_number = newval
|
18
|
+
end
|
19
|
+
def self.aws_secret_access_key
|
20
|
+
@@aws_secret_access_key
|
21
|
+
end
|
22
|
+
def self.aws_secret_access_key=(newval)
|
23
|
+
@@aws_secret_access_key = newval
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.get_credentials
|
27
|
+
Dir.chdir do
|
28
|
+
begin
|
29
|
+
Dir.chdir('./.rightscale') do
|
30
|
+
require 'testcredentials'
|
31
|
+
end
|
32
|
+
rescue Exception => e
|
33
|
+
puts "Couldn't chdir to ~/.rightscale: #{e.message}"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
$: << File.dirname(__FILE__)
|
3
|
+
require 'test_credentials'
|
4
|
+
TestCredentials.get_credentials
|
5
|
+
|
6
|
+
require 'http_connection'
|
7
|
+
require 'awsbase/test_right_awsbase.rb'
|
8
|
+
require 'ec2/test_right_ec2.rb'
|
9
|
+
require 's3/test_right_s3.rb'
|
10
|
+
require 's3/test_right_s3_stubbed.rb'
|
11
|
+
require 'sqs/test_right_sqs.rb'
|
12
|
+
require 'sqs/test_right_sqs_gen2.rb'
|
13
|
+
require 'sdb/test_right_sdb.rb'
|
14
|
+
require 'acf/test_right_acf.rb'
|
metadata
ADDED
@@ -0,0 +1,169 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: revans_right_aws
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 13
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 2.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- RightScale, Inc.
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-03-04 00:00:00 -08:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: right_http_connection
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 29
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 2
|
33
|
+
- 1
|
34
|
+
version: 1.2.1
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: hoe
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 41
|
46
|
+
segments:
|
47
|
+
- 2
|
48
|
+
- 9
|
49
|
+
- 1
|
50
|
+
version: 2.9.1
|
51
|
+
type: :development
|
52
|
+
version_requirements: *id002
|
53
|
+
description: |-
|
54
|
+
== DESCRIPTION:
|
55
|
+
|
56
|
+
The RightScale AWS gems have been designed to provide a robust, fast, and secure interface to Amazon EC2, EBS, S3, SQS, SDB, and CloudFront.
|
57
|
+
These gems have been used in production by RightScale since late 2006 and are being maintained to track enhancements made by Amazon.
|
58
|
+
The RightScale AWS gems comprise:
|
59
|
+
|
60
|
+
- RightAws::Ec2 -- interface to Amazon EC2 (Elastic Compute Cloud), VPC (Virtual Private Cloud) and the associated EBS (Elastic Block Store)
|
61
|
+
- RightAws::S3 and RightAws::S3Interface -- interface to Amazon S3 (Simple Storage Service)
|
62
|
+
- RightAws::Sqs and RightAws::SqsInterface -- interface to first-generation Amazon SQS (Simple Queue Service)
|
63
|
+
- RightAws::SqsGen2 and RightAws::SqsGen2Interface -- interface to second-generation Amazon SQS (Simple Queue Service)
|
64
|
+
- RightAws::SdbInterface and RightAws::ActiveSdb -- interface to Amazon SDB (SimpleDB)
|
65
|
+
- RightAws::AcfInterface -- interface to Amazon CloudFront, a content distribution service
|
66
|
+
- RightAws::AsInterface -- interface to Amazon Auto Scaling
|
67
|
+
- RightAws::AcwInterface -- interface to Amazon Cloud Watch
|
68
|
+
- RightAws::ElbInterface -- interface to Amazon Elastic Load Balancer
|
69
|
+
- RightAws::RdsInterface -- interface to Amazon RDS instances
|
70
|
+
|
71
|
+
== FEATURES:
|
72
|
+
email: support@rightscale.com
|
73
|
+
executables: []
|
74
|
+
|
75
|
+
extensions: []
|
76
|
+
|
77
|
+
extra_rdoc_files:
|
78
|
+
- History.txt
|
79
|
+
- Manifest.txt
|
80
|
+
- README.txt
|
81
|
+
files:
|
82
|
+
- History.txt
|
83
|
+
- Manifest.txt
|
84
|
+
- README.txt
|
85
|
+
- Rakefile
|
86
|
+
- lib/awsbase/benchmark_fix.rb
|
87
|
+
- lib/awsbase/right_awsbase.rb
|
88
|
+
- lib/awsbase/support.rb
|
89
|
+
- lib/ec2/right_ec2.rb
|
90
|
+
- lib/ec2/right_ec2_images.rb
|
91
|
+
- lib/ec2/right_ec2_instances.rb
|
92
|
+
- lib/ec2/right_ec2_security_groups.rb
|
93
|
+
- lib/ec2/right_ec2_spot_instances.rb
|
94
|
+
- lib/ec2/right_ec2_ebs.rb
|
95
|
+
- lib/ec2/right_ec2_reserved_instances.rb
|
96
|
+
- lib/ec2/right_ec2_vpc.rb
|
97
|
+
- lib/ec2/right_ec2_monitoring.rb
|
98
|
+
- lib/right_aws.rb
|
99
|
+
- lib/s3/right_s3.rb
|
100
|
+
- lib/acw/right_acw_interface.rb
|
101
|
+
- lib/elb/right_elb_interface.rb
|
102
|
+
- lib/as/right_as_interface.rb
|
103
|
+
- lib/s3/right_s3_interface.rb
|
104
|
+
- lib/sdb/active_sdb.rb
|
105
|
+
- lib/sdb/right_sdb_interface.rb
|
106
|
+
- lib/sqs/right_sqs.rb
|
107
|
+
- lib/sqs/right_sqs_gen2.rb
|
108
|
+
- lib/sqs/right_sqs_gen2_interface.rb
|
109
|
+
- lib/sqs/right_sqs_interface.rb
|
110
|
+
- lib/acf/right_acf_interface.rb
|
111
|
+
- lib/acf/right_acf_streaming_interface.rb
|
112
|
+
- lib/acf/right_acf_origin_access_identities.rb
|
113
|
+
- lib/rds/right_rds_interface.rb
|
114
|
+
- test/ec2/test_helper.rb
|
115
|
+
- test/ec2/test_right_ec2.rb
|
116
|
+
- test/http_connection.rb
|
117
|
+
- test/s3/test_helper.rb
|
118
|
+
- test/s3/test_right_s3.rb
|
119
|
+
- test/s3/test_right_s3_stubbed.rb
|
120
|
+
- test/sdb/test_active_sdb.rb
|
121
|
+
- test/sdb/test_helper.rb
|
122
|
+
- test/sdb/test_right_sdb.rb
|
123
|
+
- test/sqs/test_helper.rb
|
124
|
+
- test/sqs/test_right_sqs.rb
|
125
|
+
- test/sqs/test_right_sqs_gen2.rb
|
126
|
+
- test/test_credentials.rb
|
127
|
+
- test/ts_right_aws.rb
|
128
|
+
- test/acf/test_helper.rb
|
129
|
+
- test/acf/test_right_acf.rb
|
130
|
+
- test/rds/test_helper.rb
|
131
|
+
- test/rds/test_right_rds.rb
|
132
|
+
- .gemtest
|
133
|
+
has_rdoc: true
|
134
|
+
homepage:
|
135
|
+
licenses: []
|
136
|
+
|
137
|
+
post_install_message:
|
138
|
+
rdoc_options:
|
139
|
+
- --main
|
140
|
+
- README.txt
|
141
|
+
require_paths:
|
142
|
+
- lib
|
143
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
144
|
+
none: false
|
145
|
+
requirements:
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
hash: 3
|
149
|
+
segments:
|
150
|
+
- 0
|
151
|
+
version: "0"
|
152
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
hash: 3
|
158
|
+
segments:
|
159
|
+
- 0
|
160
|
+
version: "0"
|
161
|
+
requirements: []
|
162
|
+
|
163
|
+
rubyforge_project: revans_rightaws
|
164
|
+
rubygems_version: 1.4.2
|
165
|
+
signing_key:
|
166
|
+
specification_version: 3
|
167
|
+
summary: Interface classes for the Amazon EC2, SQS, and S3 Web Services
|
168
|
+
test_files:
|
169
|
+
- test/ts_right_aws.rb
|