aboisvert_aws 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +329 -0
- data/Manifest.txt +61 -0
- data/README.txt +163 -0
- data/Rakefile +130 -0
- data/lib/acf/right_acf_interface.rb +549 -0
- data/lib/acf/right_acf_invalidations.rb +144 -0
- data/lib/acf/right_acf_origin_access_identities.rb +230 -0
- data/lib/acf/right_acf_streaming_interface.rb +229 -0
- data/lib/acw/right_acw_interface.rb +248 -0
- data/lib/as/right_as_interface.rb +698 -0
- data/lib/awsbase/benchmark_fix.rb +39 -0
- data/lib/awsbase/right_awsbase.rb +1343 -0
- data/lib/awsbase/support.rb +35 -0
- data/lib/awsbase/version.rb +9 -0
- data/lib/ec2/right_ec2.rb +541 -0
- data/lib/ec2/right_ec2_ebs.rb +481 -0
- data/lib/ec2/right_ec2_images.rb +444 -0
- data/lib/ec2/right_ec2_instances.rb +788 -0
- data/lib/ec2/right_ec2_monitoring.rb +70 -0
- data/lib/ec2/right_ec2_placement_groups.rb +108 -0
- data/lib/ec2/right_ec2_reserved_instances.rb +184 -0
- data/lib/ec2/right_ec2_security_groups.rb +491 -0
- data/lib/ec2/right_ec2_spot_instances.rb +422 -0
- data/lib/ec2/right_ec2_tags.rb +139 -0
- data/lib/ec2/right_ec2_vpc.rb +590 -0
- data/lib/ec2/right_ec2_vpc2.rb +381 -0
- data/lib/ec2/right_ec2_windows_mobility.rb +84 -0
- data/lib/elb/right_elb_interface.rb +573 -0
- data/lib/emr/right_emr_interface.rb +727 -0
- data/lib/iam/right_iam_access_keys.rb +71 -0
- data/lib/iam/right_iam_groups.rb +195 -0
- data/lib/iam/right_iam_interface.rb +341 -0
- data/lib/iam/right_iam_mfa_devices.rb +67 -0
- data/lib/iam/right_iam_users.rb +251 -0
- data/lib/rds/right_rds_interface.rb +1384 -0
- data/lib/right_aws.rb +86 -0
- data/lib/route_53/right_route_53_interface.rb +640 -0
- data/lib/s3/right_s3.rb +1138 -0
- data/lib/s3/right_s3_interface.rb +1278 -0
- data/lib/sdb/active_sdb.rb +1107 -0
- data/lib/sdb/right_sdb_interface.rb +762 -0
- data/lib/sns/right_sns_interface.rb +286 -0
- data/lib/sqs/right_sqs.rb +387 -0
- data/lib/sqs/right_sqs_gen2.rb +342 -0
- data/lib/sqs/right_sqs_gen2_interface.rb +523 -0
- data/lib/sqs/right_sqs_interface.rb +593 -0
- data/right_aws.gemspec +90 -0
- data/test/README.mdown +39 -0
- data/test/acf/test_helper.rb +2 -0
- data/test/acf/test_right_acf.rb +138 -0
- data/test/awsbase/test_helper.rb +2 -0
- data/test/awsbase/test_right_awsbase.rb +11 -0
- data/test/ec2/test_helper.rb +2 -0
- data/test/ec2/test_right_ec2.rb +107 -0
- data/test/elb/test_helper.rb +2 -0
- data/test/elb/test_right_elb.rb +43 -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/route_53/fixtures/a_record.xml +18 -0
- data/test/route_53/fixtures/alias_record.xml +18 -0
- data/test/route_53/test_helper.rb +2 -0
- data/test/route_53/test_right_route_53.rb +141 -0
- data/test/s3/test_helper.rb +2 -0
- data/test/s3/test_right_s3.rb +528 -0
- data/test/s3/test_right_s3_stubbed.rb +97 -0
- data/test/sdb/test_active_sdb.rb +357 -0
- data/test/sdb/test_batch_put_attributes.rb +54 -0
- data/test/sdb/test_helper.rb +3 -0
- data/test/sdb/test_right_sdb.rb +253 -0
- data/test/sns/test_helper.rb +2 -0
- data/test/sns/test_right_sns.rb +153 -0
- data/test/sqs/test_helper.rb +2 -0
- data/test/sqs/test_right_sqs.rb +285 -0
- data/test/sqs/test_right_sqs_gen2.rb +264 -0
- data/test/test_credentials.rb +37 -0
- data/test/ts_right_aws.rb +15 -0
- metadata +257 -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,15 @@
|
|
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'
|
15
|
+
require 'sns/test_right_sns.rb'
|
metadata
ADDED
@@ -0,0 +1,257 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: aboisvert_aws
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 7
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 3.0.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- RightScale, Inc.
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-12-16 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
prerelease: false
|
22
|
+
type: :runtime
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 21
|
29
|
+
segments:
|
30
|
+
- 1
|
31
|
+
- 2
|
32
|
+
- 5
|
33
|
+
version: 1.2.5
|
34
|
+
version_requirements: *id001
|
35
|
+
name: right_http_connection
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
prerelease: false
|
38
|
+
type: :development
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
48
|
+
version_requirements: *id002
|
49
|
+
name: rake
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
prerelease: false
|
52
|
+
type: :development
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
version: "0"
|
62
|
+
version_requirements: *id003
|
63
|
+
name: rcov
|
64
|
+
description: |
|
65
|
+
== DESCRIPTION:
|
66
|
+
|
67
|
+
The RightScale AWS gems have been designed to provide a robust, fast, and secure interface to Amazon EC2, EBS, S3, SQS, SDB, and CloudFront.
|
68
|
+
These gems have been used in production by RightScale since late 2006 and are being maintained to track enhancements made by Amazon.
|
69
|
+
The RightScale AWS gems comprise:
|
70
|
+
|
71
|
+
- RightAws::Ec2 -- interface to Amazon EC2 (Elastic Compute Cloud) and the
|
72
|
+
associated EBS (Elastic Block Store)
|
73
|
+
- RightAws::S3 and RightAws::S3Interface -- interface to Amazon S3 (Simple Storage Service)
|
74
|
+
- RightAws::Sqs and RightAws::SqsInterface -- interface to first-generation Amazon SQS (Simple Queue Service) (API version 2007-05-01)
|
75
|
+
- RightAws::SqsGen2 and RightAws::SqsGen2Interface -- interface to second-generation Amazon SQS (Simple Queue Service) (API version 2008-01-01)
|
76
|
+
- RightAws::SdbInterface and RightAws::ActiveSdb -- interface to Amazon SDB (SimpleDB)
|
77
|
+
- RightAws::AcfInterface -- interface to Amazon CloudFront, a content distribution service
|
78
|
+
|
79
|
+
== FEATURES:
|
80
|
+
|
81
|
+
- Full programmmatic access to EC2, EBS, S3, SQS, SDB, and CloudFront.
|
82
|
+
- Complete error handling: all operations check for errors and report complete
|
83
|
+
error information by raising an AwsError.
|
84
|
+
- Persistent HTTP connections with robust network-level retry layer using
|
85
|
+
RightHttpConnection). This includes socket timeouts and retries.
|
86
|
+
- Robust HTTP-level retry layer. Certain (user-adjustable) HTTP errors returned
|
87
|
+
by Amazon's services are classified as temporary errors.
|
88
|
+
These errors are automaticallly retried using exponentially increasing intervals.
|
89
|
+
The number of retries is user-configurable.
|
90
|
+
- Fast REXML-based parsing of responses (as fast as a pure Ruby solution allows).
|
91
|
+
- Uses libxml (if available) for faster response parsing.
|
92
|
+
- Support for large S3 list operations. Buckets and key subfolders containing
|
93
|
+
many (> 1000) keys are listed in entirety. Operations based on list (like
|
94
|
+
bucket clear) work on arbitrary numbers of keys.
|
95
|
+
- Support for streaming GETs from S3, and streaming PUTs to S3 if the data source is a file.
|
96
|
+
- Support for single-threaded usage, multithreaded usage, as well as usage with multiple
|
97
|
+
AWS accounts.
|
98
|
+
- Support for both first- and second-generation SQS (API versions 2007-05-01
|
99
|
+
and 2008-01-01). These versions of SQS are not compatible.
|
100
|
+
- Support for signature versions 0 and 1 on SQS, SDB, and EC2.
|
101
|
+
- Interoperability with any cloud running Eucalyptus (http://eucalyptus.cs.ucsb.edu)
|
102
|
+
- Test suite (requires AWS account to do "live" testing).
|
103
|
+
|
104
|
+
email: support@rightscale.com
|
105
|
+
executables: []
|
106
|
+
|
107
|
+
extensions: []
|
108
|
+
|
109
|
+
extra_rdoc_files:
|
110
|
+
- README.txt
|
111
|
+
files:
|
112
|
+
- History.txt
|
113
|
+
- Manifest.txt
|
114
|
+
- README.txt
|
115
|
+
- Rakefile
|
116
|
+
- lib/acf/right_acf_interface.rb
|
117
|
+
- lib/acf/right_acf_invalidations.rb
|
118
|
+
- lib/acf/right_acf_origin_access_identities.rb
|
119
|
+
- lib/acf/right_acf_streaming_interface.rb
|
120
|
+
- lib/acw/right_acw_interface.rb
|
121
|
+
- lib/as/right_as_interface.rb
|
122
|
+
- lib/awsbase/benchmark_fix.rb
|
123
|
+
- lib/awsbase/right_awsbase.rb
|
124
|
+
- lib/awsbase/support.rb
|
125
|
+
- lib/awsbase/version.rb
|
126
|
+
- lib/ec2/right_ec2.rb
|
127
|
+
- lib/ec2/right_ec2_ebs.rb
|
128
|
+
- lib/ec2/right_ec2_images.rb
|
129
|
+
- lib/ec2/right_ec2_instances.rb
|
130
|
+
- lib/ec2/right_ec2_monitoring.rb
|
131
|
+
- lib/ec2/right_ec2_placement_groups.rb
|
132
|
+
- lib/ec2/right_ec2_reserved_instances.rb
|
133
|
+
- lib/ec2/right_ec2_security_groups.rb
|
134
|
+
- lib/ec2/right_ec2_spot_instances.rb
|
135
|
+
- lib/ec2/right_ec2_tags.rb
|
136
|
+
- lib/ec2/right_ec2_vpc.rb
|
137
|
+
- lib/ec2/right_ec2_vpc2.rb
|
138
|
+
- lib/ec2/right_ec2_windows_mobility.rb
|
139
|
+
- lib/elb/right_elb_interface.rb
|
140
|
+
- lib/emr/right_emr_interface.rb
|
141
|
+
- lib/iam/right_iam_access_keys.rb
|
142
|
+
- lib/iam/right_iam_groups.rb
|
143
|
+
- lib/iam/right_iam_interface.rb
|
144
|
+
- lib/iam/right_iam_mfa_devices.rb
|
145
|
+
- lib/iam/right_iam_users.rb
|
146
|
+
- lib/rds/right_rds_interface.rb
|
147
|
+
- lib/right_aws.rb
|
148
|
+
- lib/route_53/right_route_53_interface.rb
|
149
|
+
- lib/s3/right_s3.rb
|
150
|
+
- lib/s3/right_s3_interface.rb
|
151
|
+
- lib/sdb/active_sdb.rb
|
152
|
+
- lib/sdb/right_sdb_interface.rb
|
153
|
+
- lib/sns/right_sns_interface.rb
|
154
|
+
- lib/sqs/right_sqs.rb
|
155
|
+
- lib/sqs/right_sqs_gen2.rb
|
156
|
+
- lib/sqs/right_sqs_gen2_interface.rb
|
157
|
+
- lib/sqs/right_sqs_interface.rb
|
158
|
+
- right_aws.gemspec
|
159
|
+
- test/README.mdown
|
160
|
+
- test/acf/test_helper.rb
|
161
|
+
- test/acf/test_right_acf.rb
|
162
|
+
- test/awsbase/test_helper.rb
|
163
|
+
- test/awsbase/test_right_awsbase.rb
|
164
|
+
- test/ec2/test_helper.rb
|
165
|
+
- test/ec2/test_right_ec2.rb
|
166
|
+
- test/elb/test_helper.rb
|
167
|
+
- test/elb/test_right_elb.rb
|
168
|
+
- test/http_connection.rb
|
169
|
+
- test/rds/test_helper.rb
|
170
|
+
- test/rds/test_right_rds.rb
|
171
|
+
- test/route_53/fixtures/a_record.xml
|
172
|
+
- test/route_53/fixtures/alias_record.xml
|
173
|
+
- test/route_53/test_helper.rb
|
174
|
+
- test/route_53/test_right_route_53.rb
|
175
|
+
- test/s3/test_helper.rb
|
176
|
+
- test/s3/test_right_s3.rb
|
177
|
+
- test/s3/test_right_s3_stubbed.rb
|
178
|
+
- test/sdb/test_active_sdb.rb
|
179
|
+
- test/sdb/test_batch_put_attributes.rb
|
180
|
+
- test/sdb/test_helper.rb
|
181
|
+
- test/sdb/test_right_sdb.rb
|
182
|
+
- test/sns/test_helper.rb
|
183
|
+
- test/sns/test_right_sns.rb
|
184
|
+
- test/sqs/test_helper.rb
|
185
|
+
- test/sqs/test_right_sqs.rb
|
186
|
+
- test/sqs/test_right_sqs_gen2.rb
|
187
|
+
- test/test_credentials.rb
|
188
|
+
- test/ts_right_aws.rb
|
189
|
+
homepage:
|
190
|
+
licenses: []
|
191
|
+
|
192
|
+
post_install_message:
|
193
|
+
rdoc_options:
|
194
|
+
- --main
|
195
|
+
- README.txt
|
196
|
+
- --title
|
197
|
+
- ""
|
198
|
+
require_paths:
|
199
|
+
- lib
|
200
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
202
|
+
requirements:
|
203
|
+
- - ">="
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
hash: 57
|
206
|
+
segments:
|
207
|
+
- 1
|
208
|
+
- 8
|
209
|
+
- 7
|
210
|
+
version: 1.8.7
|
211
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
|
+
none: false
|
213
|
+
requirements:
|
214
|
+
- - ">="
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
hash: 3
|
217
|
+
segments:
|
218
|
+
- 0
|
219
|
+
version: "0"
|
220
|
+
requirements:
|
221
|
+
- libxml-ruby >= 0.5.2.0 is encouraged
|
222
|
+
rubyforge_project: rightaws
|
223
|
+
rubygems_version: 1.8.12
|
224
|
+
signing_key:
|
225
|
+
specification_version: 3
|
226
|
+
summary: Interface classes for the Amazon EC2, SQS, and S3 Web Services
|
227
|
+
test_files:
|
228
|
+
- test/sdb/test_right_sdb.rb
|
229
|
+
- test/sdb/test_helper.rb
|
230
|
+
- test/sdb/test_batch_put_attributes.rb
|
231
|
+
- test/sdb/test_active_sdb.rb
|
232
|
+
- test/route_53/test_right_route_53.rb
|
233
|
+
- test/route_53/test_helper.rb
|
234
|
+
- test/route_53/fixtures/a_record.xml
|
235
|
+
- test/route_53/fixtures/alias_record.xml
|
236
|
+
- test/sns/test_right_sns.rb
|
237
|
+
- test/sns/test_helper.rb
|
238
|
+
- test/ec2/test_helper.rb
|
239
|
+
- test/ec2/test_right_ec2.rb
|
240
|
+
- test/ts_right_aws.rb
|
241
|
+
- test/http_connection.rb
|
242
|
+
- test/elb/test_helper.rb
|
243
|
+
- test/elb/test_right_elb.rb
|
244
|
+
- test/sqs/test_helper.rb
|
245
|
+
- test/sqs/test_right_sqs_gen2.rb
|
246
|
+
- test/sqs/test_right_sqs.rb
|
247
|
+
- test/README.mdown
|
248
|
+
- test/test_credentials.rb
|
249
|
+
- test/acf/test_right_acf.rb
|
250
|
+
- test/acf/test_helper.rb
|
251
|
+
- test/awsbase/test_right_awsbase.rb
|
252
|
+
- test/awsbase/test_helper.rb
|
253
|
+
- test/s3/test_right_s3_stubbed.rb
|
254
|
+
- test/s3/test_helper.rb
|
255
|
+
- test/s3/test_right_s3.rb
|
256
|
+
- test/rds/test_helper.rb
|
257
|
+
- test/rds/test_right_rds.rb
|