right_aws 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,9 @@
1
+ require 'test/unit'
2
+ require 'test_credentials'
3
+ TestCredentials.get_credentials
4
+
5
+ require 'awsbase/test_right_awsbase.rb'
6
+ require 'ec2/test_right_ec2.rb'
7
+ require 's3/test_right_s3.rb'
8
+ require 'sqs/test_right_sqs.rb'
9
+
metadata ADDED
@@ -0,0 +1,102 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.4
3
+ specification_version: 1
4
+ name: right_aws
5
+ version: !ruby/object:Gem::Version
6
+ version: 1.1.0
7
+ date: 2007-08-15 00:00:00 -07:00
8
+ summary: Interface classes for the Amazon EC2, SQS, and S3 Web Services
9
+ require_paths:
10
+ - lib
11
+ email: support@rightscale.com
12
+ homepage: " by RightScale, Inc."
13
+ rubyforge_project: rightaws
14
+ description: "RightAws::Ec2 is a Ruby library for the Amazon EC2 (Elastic Compute Cloud) service. RightAws::S3 and RightAws::S3Interface are Ruby libraries for the Amazon S3 (Simple Storage Service) service. RightAws::Sqs and RightAws::SqsInterface is a Ruby library for the Amazon SQS (Simple Queue Service) service. All RightAws interfaces work in one of two ways: 1) They use a single persistent HTTP connection per process or 2) per Ruby thread. Foir example, it doesn't matter how many RightAws::S3 objects you create, they all use the same per-program or per-thread connection. The purpose of sharing the connection is to keep a single persistent HTTP connection open to avoid paying connection overhead on every request. However, if you have multiple concurrent threads, you may want or need an HTTP connection per thread to enable concurrent requests to S3. The way this plays out in practice is: 1) If you have a non-multithreaded Ruby program, use the non-multithreaded setting for Gem. 2) If you have a multi-threaded Ruby program, use the multithreaded setting to enable concurrent requests to S3 (SQS, EC2). 3) For running under Mongrel/Rails, use thhe non-multithreaded setting for Gem even though Mongrel is multithreaded. This is because only one Rails handler is invoked at any time (i.e. it acts like a single-threaded program)"
15
+ autorequire:
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - RightScale, Inc.
31
+ files:
32
+ - History.txt
33
+ - Manifest.txt
34
+ - README.txt
35
+ - Rakefile
36
+ - lib/right_aws.rb
37
+ - lib/awsbase/benchmark_fix.rb
38
+ - lib/awsbase/right_awsbase.rb
39
+ - lib/ec2/right_ec2.rb
40
+ - lib/s3/right_s3.rb
41
+ - lib/s3/right_s3_interface.rb
42
+ - lib/sqs/right_sqs.rb
43
+ - lib/sqs/right_sqs_interface.rb
44
+ - test/ec2/test_helper.rb
45
+ - test/ec2/test_right_ec2.rb
46
+ - test/s3/test_helper.rb
47
+ - test/s3/test_right_s3.rb
48
+ - test/sqs/test_helper.rb
49
+ - test/sqs/test_right_sqs.rb
50
+ - test/ts_right_aws.rb
51
+ - test/test_credentials.rb
52
+ test_files:
53
+ - test/awsbase/test_helper.rb
54
+ - test/awsbase/test_right_awsbase.rb
55
+ - test/ec2/test_helper.rb
56
+ - test/ec2/test_right_ec2.rb
57
+ - test/s3/test_helper.rb
58
+ - test/s3/test_right_s3.rb
59
+ - test/sqs/test_helper.rb
60
+ - test/sqs/test_right_sqs.rb
61
+ - test/test_credentials.rb
62
+ rdoc_options:
63
+ - --main
64
+ - README.txt
65
+ extra_rdoc_files:
66
+ - History.txt
67
+ - Manifest.txt
68
+ - README.txt
69
+ executables: []
70
+
71
+ extensions: []
72
+
73
+ requirements: []
74
+
75
+ dependencies:
76
+ - !ruby/object:Gem::Dependency
77
+ name: activesupport
78
+ version_requirement:
79
+ version_requirements: !ruby/object:Gem::Version::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: 1.4.1
84
+ version:
85
+ - !ruby/object:Gem::Dependency
86
+ name: right_http_connection
87
+ version_requirement:
88
+ version_requirements: !ruby/object:Gem::Version::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: 0.1.4
93
+ version:
94
+ - !ruby/object:Gem::Dependency
95
+ name: hoe
96
+ version_requirement:
97
+ version_requirements: !ruby/object:Gem::Version::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: 1.2.1
102
+ version: