aws 1.10.1 → 1.10.2
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/History.txt +8 -0
- data/lib/awsbase/right_awsbase.rb +3 -1
- data/lib/right_aws.rb +1 -1
- data/lib/sdb/active_sdb.rb +11 -7
- data/lib/sdb/right_sdb_interface.rb +42 -24
- data/test/acf/test_helper.rb +2 -0
- data/test/acf/test_right_acf.rb +146 -0
- data/test/ec2/test_helper.rb +2 -0
- data/test/ec2/test_right_ec2.rb +108 -0
- data/test/s3/test_helper.rb +2 -0
- data/test/s3/test_right_s3.rb +419 -0
- data/test/s3/test_right_s3_stubbed.rb +95 -0
- data/test/sdb/test_active_sdb.rb +299 -0
- data/test/sdb/test_helper.rb +3 -0
- data/test/sdb/test_right_sdb.rb +247 -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 +209 -0
- data/test/test_credentials.rb +37 -0
- metadata +17 -4
@@ -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
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Reeder
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-05-
|
12
|
+
date: 2009-05-13 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -92,5 +92,18 @@ rubygems_version: 1.3.2
|
|
92
92
|
signing_key:
|
93
93
|
specification_version: 3
|
94
94
|
summary: The RightScale AWS gems have been designed to provide a robust, fast, and secure interface to Amazon EC2, EBS, S3, SQS, SDB, and CloudFront
|
95
|
-
test_files:
|
96
|
-
|
95
|
+
test_files:
|
96
|
+
- test/acf/test_helper.rb
|
97
|
+
- test/acf/test_right_acf.rb
|
98
|
+
- test/ec2/test_helper.rb
|
99
|
+
- test/ec2/test_right_ec2.rb
|
100
|
+
- test/s3/test_helper.rb
|
101
|
+
- test/s3/test_right_s3.rb
|
102
|
+
- test/s3/test_right_s3_stubbed.rb
|
103
|
+
- test/sdb/test_active_sdb.rb
|
104
|
+
- test/sdb/test_helper.rb
|
105
|
+
- test/sdb/test_right_sdb.rb
|
106
|
+
- test/sqs/test_helper.rb
|
107
|
+
- test/sqs/test_right_sqs.rb
|
108
|
+
- test/sqs/test_right_sqs_gen2.rb
|
109
|
+
- test/test_credentials.rb
|