ingamer_raws 2.0.2 → 2.1.0
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/Gemfile +11 -0
- data/Gemfile.lock +22 -0
- data/History.txt +22 -1
- data/Manifest.txt +11 -1
- data/README.txt +0 -4
- data/Rakefile +19 -25
- data/lib/acf/right_acf_interface.rb +199 -135
- data/lib/acf/right_acf_invalidations.rb +144 -0
- data/lib/acf/right_acf_origin_access_identities.rb +4 -4
- data/lib/acf/right_acf_streaming_interface.rb +19 -26
- data/lib/acw/right_acw_interface.rb +1 -2
- data/lib/as/right_as_interface.rb +6 -7
- data/lib/awsbase/right_awsbase.rb +287 -91
- data/lib/awsbase/support.rb +2 -82
- data/lib/awsbase/version.rb +9 -0
- data/lib/ec2/right_ec2.rb +101 -38
- data/lib/ec2/right_ec2_ebs.rb +71 -58
- data/lib/ec2/right_ec2_images.rb +82 -42
- data/lib/ec2/right_ec2_instances.rb +74 -44
- data/lib/ec2/right_ec2_placement_groups.rb +108 -0
- data/lib/ec2/right_ec2_reserved_instances.rb +50 -46
- data/lib/ec2/right_ec2_security_groups.rb +147 -28
- data/lib/ec2/right_ec2_spot_instances.rb +53 -27
- data/lib/ec2/right_ec2_tags.rb +139 -0
- data/lib/ec2/right_ec2_vpc.rb +151 -139
- data/lib/ec2/right_ec2_windows_mobility.rb +84 -0
- data/lib/elb/right_elb_interface.rb +93 -18
- 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 +513 -202
- data/lib/right_aws.rb +12 -12
- data/lib/route_53/right_route_53_interface.rb +630 -0
- data/lib/s3/right_s3.rb +9 -12
- data/lib/s3/right_s3_interface.rb +10 -11
- data/lib/sdb/active_sdb.rb +18 -33
- data/lib/sdb/right_sdb_interface.rb +36 -4
- data/lib/sqs/right_sqs.rb +1 -2
- data/lib/sqs/right_sqs_gen2.rb +0 -1
- data/lib/sqs/right_sqs_gen2_interface.rb +4 -5
- data/lib/sqs/right_sqs_interface.rb +6 -7
- metadata +19 -6
@@ -49,13 +49,12 @@ module RightAws
|
|
49
49
|
|
50
50
|
# Creates a new SqsInterface instance.
|
51
51
|
#
|
52
|
-
# sqs = RightAws::SqsInterface.new('1E3GDYEOGFJPIT75KDT40','hgTHt68JY07JKUY08ftHYtERkjgtfERn57DFE379', {:
|
52
|
+
# sqs = RightAws::SqsInterface.new('1E3GDYEOGFJPIT75KDT40','hgTHt68JY07JKUY08ftHYtERkjgtfERn57DFE379', {:logger => Logger.new('/tmp/x.log')})
|
53
53
|
#
|
54
54
|
# Params is a hash:
|
55
55
|
#
|
56
56
|
# {:server => 'queue.amazonaws.com' # Amazon service host: 'queue.amazonaws.com'(default)
|
57
57
|
# :port => 443 # Amazon service port: 80 or 443(default)
|
58
|
-
# :multi_thread => true|false # Multi-threaded (connection per each thread): true or false(default)
|
59
58
|
# :signature_version => '0' # The signature version : '0', '1' or '2'(default)
|
60
59
|
# :logger => Logger Object} # Logger instance: logs to STDOUT if omitted }
|
61
60
|
#
|
@@ -104,8 +103,8 @@ module RightAws
|
|
104
103
|
param.each{ |key, value| param.delete(key) if (value.nil? || key.is_a?(Symbol)) }
|
105
104
|
# created request
|
106
105
|
param_to_str = param.to_a.collect{|key,val| key.to_s + "=" + CGI::escape(val.to_s) }.join("&")
|
107
|
-
param_to_str = "?#{param_to_str}" unless param_to_str.
|
108
|
-
request = "Net::HTTP::#{method.capitalize}".
|
106
|
+
param_to_str = "?#{param_to_str}" unless param_to_str.right_blank?
|
107
|
+
request = "Net::HTTP::#{method.capitalize}".right_constantize.new("#{queue_uri}#{param_to_str}")
|
109
108
|
request.body = message if message
|
110
109
|
# set main headers
|
111
110
|
request['content-md5'] = ''
|
@@ -311,7 +310,7 @@ module RightAws
|
|
311
310
|
def peek_message(queue_url, message_id)
|
312
311
|
req_hash = generate_rest_request('GET', :queue_url => "#{queue_url}/#{CGI::escape message_id}" )
|
313
312
|
messages = request_info(req_hash, SqsReceiveMessagesParser.new(:logger => @logger))
|
314
|
-
messages.
|
313
|
+
messages.right_blank? ? nil : messages[0]
|
315
314
|
rescue
|
316
315
|
on_exception
|
317
316
|
end
|
@@ -452,7 +451,7 @@ module RightAws
|
|
452
451
|
#
|
453
452
|
def receive_message(queue_url, visibility_timeout=nil)
|
454
453
|
result = receive_messages(queue_url, 1, visibility_timeout)
|
455
|
-
result.
|
454
|
+
result.right_blank? ? nil : result[0]
|
456
455
|
rescue
|
457
456
|
on_exception
|
458
457
|
end
|
@@ -482,7 +481,7 @@ module RightAws
|
|
482
481
|
#
|
483
482
|
def pop_message(queue_url)
|
484
483
|
messages = pop_messages(queue_url)
|
485
|
-
messages.
|
484
|
+
messages.right_blank? ? nil : messages[0]
|
486
485
|
rescue
|
487
486
|
on_exception
|
488
487
|
end
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 2
|
7
|
+
- 1
|
7
8
|
- 0
|
8
|
-
|
9
|
-
version: 2.0.2
|
9
|
+
version: 2.1.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- RightScale, Inc.
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-02-28 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -27,9 +27,9 @@ dependencies:
|
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
segments:
|
29
29
|
- 1
|
30
|
-
-
|
31
|
-
-
|
32
|
-
version: 1.
|
30
|
+
- 3
|
31
|
+
- 0
|
32
|
+
version: 1.3.0
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
35
|
description: Slight repackaging of RightScale right_aws
|
@@ -42,6 +42,7 @@ extra_rdoc_files: []
|
|
42
42
|
|
43
43
|
files:
|
44
44
|
- lib/acf/right_acf_interface.rb
|
45
|
+
- lib/acf/right_acf_invalidations.rb
|
45
46
|
- lib/acf/right_acf_origin_access_identities.rb
|
46
47
|
- lib/acf/right_acf_streaming_interface.rb
|
47
48
|
- lib/acw/right_acw_interface.rb
|
@@ -49,18 +50,28 @@ files:
|
|
49
50
|
- lib/awsbase/benchmark_fix.rb
|
50
51
|
- lib/awsbase/right_awsbase.rb
|
51
52
|
- lib/awsbase/support.rb
|
53
|
+
- lib/awsbase/version.rb
|
52
54
|
- lib/ec2/right_ec2.rb
|
53
55
|
- lib/ec2/right_ec2_ebs.rb
|
54
56
|
- lib/ec2/right_ec2_images.rb
|
55
57
|
- lib/ec2/right_ec2_instances.rb
|
56
58
|
- lib/ec2/right_ec2_monitoring.rb
|
59
|
+
- lib/ec2/right_ec2_placement_groups.rb
|
57
60
|
- lib/ec2/right_ec2_reserved_instances.rb
|
58
61
|
- lib/ec2/right_ec2_security_groups.rb
|
59
62
|
- lib/ec2/right_ec2_spot_instances.rb
|
63
|
+
- lib/ec2/right_ec2_tags.rb
|
60
64
|
- lib/ec2/right_ec2_vpc.rb
|
65
|
+
- lib/ec2/right_ec2_windows_mobility.rb
|
61
66
|
- lib/elb/right_elb_interface.rb
|
67
|
+
- lib/iam/right_iam_access_keys.rb
|
68
|
+
- lib/iam/right_iam_groups.rb
|
69
|
+
- lib/iam/right_iam_interface.rb
|
70
|
+
- lib/iam/right_iam_mfa_devices.rb
|
71
|
+
- lib/iam/right_iam_users.rb
|
62
72
|
- lib/rds/right_rds_interface.rb
|
63
73
|
- lib/right_aws.rb
|
74
|
+
- lib/route_53/right_route_53_interface.rb
|
64
75
|
- lib/s3/right_s3.rb
|
65
76
|
- lib/s3/right_s3_interface.rb
|
66
77
|
- lib/sdb/active_sdb.rb
|
@@ -69,6 +80,8 @@ files:
|
|
69
80
|
- lib/sqs/right_sqs_gen2.rb
|
70
81
|
- lib/sqs/right_sqs_gen2_interface.rb
|
71
82
|
- lib/sqs/right_sqs_interface.rb
|
83
|
+
- Gemfile
|
84
|
+
- Gemfile.lock
|
72
85
|
- History.txt
|
73
86
|
- Manifest.txt
|
74
87
|
- Rakefile
|