aws 2.8.0 → 2.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/Gemfile +3 -0
- data/Rakefile +66 -0
- data/aws.gemspec +25 -0
- data/lib/ec2/ec2.rb +262 -0
- data/lib/version.rb +3 -0
- data/test/acf/test_acf.rb +148 -0
- data/test/acf/test_helper.rb +2 -0
- data/test/ec2/test_ec2.rb +241 -0
- data/test/ec2/test_helper.rb +2 -0
- data/test/ec2/test_mon.rb +17 -0
- data/test/elb/test_elb.rb +51 -0
- data/test/http_connection.rb +87 -0
- data/test/iam/test_iam.rb +33 -0
- data/test/rds/test_rds.rb +181 -0
- data/test/s3/s3_test_base.rb +23 -0
- data/test/s3/test_helper.rb +3 -0
- data/test/s3/test_s3.rb +180 -0
- data/test/s3/test_s3_class.rb +201 -0
- data/test/s3/test_s3_rights.rb +139 -0
- data/test/s3/test_s3_stubbed.rb +97 -0
- data/test/sdb/test_helper.rb +2 -0
- data/test/sdb/test_sdb.rb +226 -0
- data/test/sdb/unicode.txt +1 -0
- data/test/ses/test_ses.rb +54 -0
- data/test/sqs/test_helper.rb +2 -0
- data/test/sqs/test_sqs.rb +231 -0
- data/test/test_credentials.rb +54 -0
- metadata +71 -77
@@ -0,0 +1,54 @@
|
|
1
|
+
class TestCredentials
|
2
|
+
|
3
|
+
@@aws_access_key_id = nil
|
4
|
+
@@aws_secret_access_key = nil
|
5
|
+
@@account_number = nil
|
6
|
+
@@config = nil
|
7
|
+
|
8
|
+
def self.config
|
9
|
+
@@config
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.aws_access_key_id
|
13
|
+
@@aws_access_key_id
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.aws_access_key_id=(newval)
|
17
|
+
@@aws_access_key_id = newval
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.account_number
|
21
|
+
@@account_number
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.account_number=(newval)
|
25
|
+
@@account_number = newval
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.aws_secret_access_key
|
29
|
+
@@aws_secret_access_key
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.aws_secret_access_key=(newval)
|
33
|
+
@@aws_secret_access_key = newval
|
34
|
+
end
|
35
|
+
|
36
|
+
require 'yaml'
|
37
|
+
|
38
|
+
def self.get_credentials
|
39
|
+
#Dir.chdir do
|
40
|
+
begin
|
41
|
+
|
42
|
+
Dir.chdir(File.expand_path("~/.test_configs")) do
|
43
|
+
credentials = YAML::load(File.open("aws.yml"))
|
44
|
+
@@config = credentials
|
45
|
+
self.aws_access_key_id = credentials["amazon"]["access_key"]
|
46
|
+
self.aws_secret_access_key = credentials["amazon"]["secret_key"]
|
47
|
+
end
|
48
|
+
rescue Exception => e
|
49
|
+
puts "#{e.message}"
|
50
|
+
raise e
|
51
|
+
end
|
52
|
+
#end
|
53
|
+
end
|
54
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
5
|
-
prerelease:
|
4
|
+
version: 2.9.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Travis Reeder
|
@@ -11,112 +10,63 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date: 2013-
|
13
|
+
date: 2013-05-22 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: uuidtools
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
|
-
- -
|
19
|
+
- - '>='
|
22
20
|
- !ruby/object:Gem::Version
|
23
21
|
version: '0'
|
24
22
|
type: :runtime
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
|
-
- -
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
version: '0'
|
32
|
-
- !ruby/object:Gem::Dependency
|
33
|
-
name: http_connection
|
34
|
-
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
|
-
requirements:
|
37
|
-
- - ! '>='
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0'
|
40
|
-
type: :runtime
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
|
-
requirements:
|
45
|
-
- - ! '>='
|
26
|
+
- - '>='
|
46
27
|
- !ruby/object:Gem::Version
|
47
28
|
version: '0'
|
48
29
|
- !ruby/object:Gem::Dependency
|
49
30
|
name: xml-simple
|
50
31
|
requirement: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
|
-
requirements:
|
53
|
-
- - ! '>='
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '0'
|
56
|
-
type: :runtime
|
57
|
-
prerelease: false
|
58
|
-
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
|
-
requirements:
|
61
|
-
- - ! '>='
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: '0'
|
64
|
-
- !ruby/object:Gem::Dependency
|
65
|
-
name: uuidtools
|
66
|
-
requirement: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
32
|
requirements:
|
69
|
-
- -
|
33
|
+
- - '>='
|
70
34
|
- !ruby/object:Gem::Version
|
71
35
|
version: '0'
|
72
36
|
type: :runtime
|
73
37
|
prerelease: false
|
74
38
|
version_requirements: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
39
|
requirements:
|
77
|
-
- -
|
40
|
+
- - '>='
|
78
41
|
- !ruby/object:Gem::Version
|
79
42
|
version: '0'
|
80
43
|
- !ruby/object:Gem::Dependency
|
81
44
|
name: http_connection
|
82
45
|
requirement: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
|
-
requirements:
|
85
|
-
- - ! '>='
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: '0'
|
88
|
-
type: :runtime
|
89
|
-
prerelease: false
|
90
|
-
version_requirements: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
|
-
requirements:
|
93
|
-
- - ! '>='
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '0'
|
96
|
-
- !ruby/object:Gem::Dependency
|
97
|
-
name: xml-simple
|
98
|
-
requirement: !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
46
|
requirements:
|
101
|
-
- -
|
47
|
+
- - '>='
|
102
48
|
- !ruby/object:Gem::Version
|
103
49
|
version: '0'
|
104
50
|
type: :runtime
|
105
51
|
prerelease: false
|
106
52
|
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
53
|
requirements:
|
109
|
-
- -
|
54
|
+
- - '>='
|
110
55
|
- !ruby/object:Gem::Version
|
111
56
|
version: '0'
|
112
57
|
description: AWS Ruby Library for interfacing with Amazon Web Services including EC2,
|
113
58
|
S3, SQS, SimpleDB and most of their other services as well. By http://www.appoxy.com
|
114
|
-
email:
|
59
|
+
email:
|
60
|
+
- travis@appoxy.com
|
115
61
|
executables: []
|
116
62
|
extensions: []
|
117
|
-
extra_rdoc_files:
|
118
|
-
- README.markdown
|
63
|
+
extra_rdoc_files: []
|
119
64
|
files:
|
65
|
+
- .gitignore
|
66
|
+
- Gemfile
|
67
|
+
- README.markdown
|
68
|
+
- Rakefile
|
69
|
+
- aws.gemspec
|
120
70
|
- lib/acf/acf_interface.rb
|
121
71
|
- lib/aws.rb
|
122
72
|
- lib/awsbase/aws_response_array.rb
|
@@ -142,29 +92,73 @@ files:
|
|
142
92
|
- lib/ses/ses.rb
|
143
93
|
- lib/sqs/sqs.rb
|
144
94
|
- lib/sqs/sqs_interface.rb
|
145
|
-
-
|
95
|
+
- lib/version.rb
|
96
|
+
- test/acf/test_acf.rb
|
97
|
+
- test/acf/test_helper.rb
|
98
|
+
- test/ec2/test_ec2.rb
|
99
|
+
- test/ec2/test_helper.rb
|
100
|
+
- test/ec2/test_mon.rb
|
101
|
+
- test/elb/test_elb.rb
|
102
|
+
- test/http_connection.rb
|
103
|
+
- test/iam/test_iam.rb
|
104
|
+
- test/rds/test_rds.rb
|
105
|
+
- test/s3/s3_test_base.rb
|
106
|
+
- test/s3/test_helper.rb
|
107
|
+
- test/s3/test_s3.rb
|
108
|
+
- test/s3/test_s3_class.rb
|
109
|
+
- test/s3/test_s3_rights.rb
|
110
|
+
- test/s3/test_s3_stubbed.rb
|
111
|
+
- test/sdb/test_helper.rb
|
112
|
+
- test/sdb/test_sdb.rb
|
113
|
+
- test/sdb/unicode.txt
|
114
|
+
- test/ses/test_ses.rb
|
115
|
+
- test/sqs/test_helper.rb
|
116
|
+
- test/sqs/test_sqs.rb
|
117
|
+
- test/test_credentials.rb
|
146
118
|
homepage: http://github.com/appoxy/aws/
|
147
119
|
licenses: []
|
120
|
+
metadata: {}
|
148
121
|
post_install_message:
|
149
122
|
rdoc_options: []
|
150
123
|
require_paths:
|
151
124
|
- lib
|
152
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
126
|
requirements:
|
155
|
-
- -
|
127
|
+
- - '>='
|
156
128
|
- !ruby/object:Gem::Version
|
157
|
-
version: '
|
129
|
+
version: '1.8'
|
158
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
|
-
none: false
|
160
131
|
requirements:
|
161
|
-
- -
|
132
|
+
- - '>='
|
162
133
|
- !ruby/object:Gem::Version
|
163
|
-
version:
|
134
|
+
version: 1.3.6
|
164
135
|
requirements: []
|
165
136
|
rubyforge_project:
|
166
|
-
rubygems_version:
|
137
|
+
rubygems_version: 2.0.3
|
167
138
|
signing_key:
|
168
|
-
specification_version:
|
169
|
-
summary: AWS Ruby Library for interfacing with Amazon Web Services
|
170
|
-
|
139
|
+
specification_version: 4
|
140
|
+
summary: AWS Ruby Library for interfacing with Amazon Web Services including EC2,
|
141
|
+
S3, SQS, SimpleDB and most of their other services as well. By http://www.appoxy.com
|
142
|
+
test_files:
|
143
|
+
- test/acf/test_acf.rb
|
144
|
+
- test/acf/test_helper.rb
|
145
|
+
- test/ec2/test_ec2.rb
|
146
|
+
- test/ec2/test_helper.rb
|
147
|
+
- test/ec2/test_mon.rb
|
148
|
+
- test/elb/test_elb.rb
|
149
|
+
- test/http_connection.rb
|
150
|
+
- test/iam/test_iam.rb
|
151
|
+
- test/rds/test_rds.rb
|
152
|
+
- test/s3/s3_test_base.rb
|
153
|
+
- test/s3/test_helper.rb
|
154
|
+
- test/s3/test_s3.rb
|
155
|
+
- test/s3/test_s3_class.rb
|
156
|
+
- test/s3/test_s3_rights.rb
|
157
|
+
- test/s3/test_s3_stubbed.rb
|
158
|
+
- test/sdb/test_helper.rb
|
159
|
+
- test/sdb/test_sdb.rb
|
160
|
+
- test/sdb/unicode.txt
|
161
|
+
- test/ses/test_ses.rb
|
162
|
+
- test/sqs/test_helper.rb
|
163
|
+
- test/sqs/test_sqs.rb
|
164
|
+
- test/test_credentials.rb
|