awsum 0.5 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +14 -20
- data/README.rdoc +1 -1
- data/Rakefile +3 -3
- data/functional/ec2/instances_spec.rb +46 -0
- data/functional/spec_helper.rb +71 -0
- data/lib/awsum.rb +2 -2
- data/lib/awsum/ec2.rb +85 -68
- data/lib/awsum/ec2/image.rb +1 -1
- data/lib/awsum/ec2/instance.rb +35 -6
- data/lib/awsum/ec2/parsers/image_parser.rb +3 -5
- data/lib/awsum/ec2/parsers/instance_parser.rb +24 -15
- data/lib/awsum/ec2/parsers/snapshot_parser.rb +3 -3
- data/lib/awsum/ec2/parsers/tag_parser.rb +56 -0
- data/lib/awsum/ec2/parsers/volume_parser.rb +3 -5
- data/lib/awsum/ec2/region.rb +8 -5
- data/lib/awsum/ec2/security_group.rb +12 -16
- data/lib/awsum/ec2/snapshot.rb +9 -0
- data/lib/awsum/ec2/state.rb +22 -0
- data/lib/awsum/ec2/tag.rb +17 -0
- data/lib/awsum/ec2/volume.rb +12 -2
- data/lib/awsum/requestable.rb +53 -3
- data/spec/fixtures/ec2/authorize_group_access.xml +12 -0
- data/spec/fixtures/ec2/create_security_group.xml +3 -3
- data/spec/fixtures/ec2/delete_security_group.xml +3 -3
- data/spec/fixtures/ec2/purchase_reserved_instances_offering2.xml +5 -0
- data/spec/fixtures/ec2/tags.xml +12 -0
- data/spec/lib/awsum/ec2/image_spec.rb +60 -0
- data/spec/lib/awsum/ec2/instance_spec.rb +39 -1
- data/spec/lib/awsum/ec2/parsers/instance_parser_spec.rb +4 -3
- data/spec/lib/awsum/ec2/parsers/tag_parser_spec.rb +29 -0
- data/spec/lib/awsum/ec2/region_spec.rb +31 -2
- data/spec/lib/awsum/ec2/reserved_instance_spec.rb +3 -19
- data/spec/lib/awsum/ec2/security_group_spec.rb +123 -51
- data/spec/lib/awsum/ec2/snapshots_spec.rb +27 -1
- data/spec/lib/awsum/ec2/state_spec.rb +11 -0
- data/spec/lib/awsum/ec2/tag_spec.rb +45 -0
- data/spec/lib/awsum/ec2/volume_spec.rb +47 -0
- data/spec/lib/awsum/requestable_spec.rb +1 -1
- data/tools/dump.rb +55 -0
- metadata +176 -32
- data/.gitignore +0 -5
- data/spec/fixtures/ec2/purchase_reserved_instances_offerings.xml +0 -6
@@ -7,11 +7,25 @@ module Awsum
|
|
7
7
|
let(:ec2) { subject }
|
8
8
|
|
9
9
|
describe "creating a snapshot" do
|
10
|
+
before do
|
11
|
+
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=CreateSnapshot.*Description=Test%20snapshot.*VolumeId=vol-44d6322d|, :body => fixture('ec2/create_snapshot'), :status => 200)
|
12
|
+
end
|
13
|
+
|
14
|
+
let(:result) { ec2.create_snapshot 'vol-44d6322d', :description => 'Test snapshot' }
|
15
|
+
|
16
|
+
it "should return a snapshot" do
|
17
|
+
result.should be_a(Awsum::Ec2::Snapshot)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "creating a snapshot with tags" do
|
10
22
|
before do
|
11
23
|
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=CreateSnapshot.*VolumeId=vol-44d6322d|, :body => fixture('ec2/create_snapshot'), :status => 200)
|
24
|
+
|
25
|
+
ec2.should_receive(:create_tags).with('snap-747c911d', :name => 'Test')
|
12
26
|
end
|
13
27
|
|
14
|
-
let(:result) { ec2.create_snapshot 'vol-44d6322d' }
|
28
|
+
let(:result) { ec2.create_snapshot 'vol-44d6322d', :tags => {:name => 'Test'} }
|
15
29
|
|
16
30
|
it "should return a snapshot" do
|
17
31
|
result.should be_a(Awsum::Ec2::Snapshot)
|
@@ -42,6 +56,18 @@ module Awsum
|
|
42
56
|
end
|
43
57
|
end
|
44
58
|
|
59
|
+
describe "retrieving a list of snapshots with a filter" do
|
60
|
+
before do
|
61
|
+
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=DescribeSnapshots.*Filter.1.Name=Name.*Filter.1.Value.1=Test|, :body => fixture('ec2/snapshots'), :status => 200)
|
62
|
+
end
|
63
|
+
|
64
|
+
let(:result) { ec2.snapshots(:filter => {'Name' => 'Test'}) }
|
65
|
+
|
66
|
+
it "should return a snapshot" do
|
67
|
+
result.first.should be_a(Awsum::Ec2::Snapshot)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
45
71
|
describe "deleting a snapshot" do
|
46
72
|
before do
|
47
73
|
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=DeleteSnapshot.*SnapshotId=snap-747c911d|, :body => fixture('ec2/delete_snapshot'), :status => 200)
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Awsum
|
4
|
+
describe Ec2 do
|
5
|
+
|
6
|
+
subject { Ec2.new('abc', 'xyz') }
|
7
|
+
let(:ec2) { subject }
|
8
|
+
|
9
|
+
describe "creating a tag" do
|
10
|
+
before do
|
11
|
+
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=CreateTags.*ResourceId.1=ari-f9c22690.*Tag.1.Key=name.*Tag.1.Value=Test|, :status => 200)
|
12
|
+
end
|
13
|
+
|
14
|
+
let(:result) { ec2.create_tags 'ari-f9c22690', :name => 'Test' }
|
15
|
+
|
16
|
+
it "should return true" do
|
17
|
+
result.should be_true
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "retrieving a list of tags" do
|
22
|
+
before do
|
23
|
+
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=DescribeTags|, :body => fixture('ec2/tags'), :status => 200)
|
24
|
+
end
|
25
|
+
|
26
|
+
let(:result) { ec2.tags }
|
27
|
+
|
28
|
+
it "should return an array of tags" do
|
29
|
+
result.first.should be_a(Awsum::Ec2::Tag)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe "retrieving a list of tags with a filter" do
|
34
|
+
before do
|
35
|
+
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=DescribeTags.*Filter.1.Name=key.*Filter.1.Value.1=name|, :body => fixture('ec2/tags'), :status => 200)
|
36
|
+
end
|
37
|
+
|
38
|
+
let(:result) { ec2.tags(:key => :name) }
|
39
|
+
|
40
|
+
it "should return an array of tags" do
|
41
|
+
result.first.should be_a(Awsum::Ec2::Tag)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -18,6 +18,20 @@ module Awsum
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
+
describe "creating a volume with a tag" do
|
22
|
+
before do
|
23
|
+
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=CreateVolume.*AvailabilityZone=us-east-1b.*Size=10|, :body => fixture('ec2/create_volume'), :status => 200)
|
24
|
+
|
25
|
+
ec2.should_receive(:create_tags).with('vol-44d6322d', :name => 'Test')
|
26
|
+
end
|
27
|
+
|
28
|
+
let(:result) { ec2.create_volume 'us-east-1b', :size => 10, :tags => {:name => 'Test'} }
|
29
|
+
|
30
|
+
it "should return a volume" do
|
31
|
+
result.should be_a(Awsum::Ec2::Volume)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
21
35
|
describe "retrieving a list of volumes" do
|
22
36
|
before do
|
23
37
|
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=DescribeVolumes|, :body => fixture('ec2/volumes'), :status => 200)
|
@@ -30,6 +44,30 @@ module Awsum
|
|
30
44
|
end
|
31
45
|
end
|
32
46
|
|
47
|
+
describe "retrieving a list of volumes with a filter" do
|
48
|
+
before do
|
49
|
+
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=DescribeVolumes.*Filter.1.Name=attachment.status.*Filter.1.Value.1=attached|, :body => fixture('ec2/volumes'), :status => 200)
|
50
|
+
end
|
51
|
+
|
52
|
+
let(:result) { ec2.volumes(:filter => {'attachment.status' => 'attached'}) }
|
53
|
+
|
54
|
+
it "should return an array of volumes" do
|
55
|
+
result.first.should be_a(Awsum::Ec2::Volume)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe "retrieving a list of volumes by tag" do
|
60
|
+
before do
|
61
|
+
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=DescribeVolumes.*Filter.1.Name=tag%3Aname.*Filter.1.Value.1=Test|, :body => fixture('ec2/volumes'), :status => 200)
|
62
|
+
end
|
63
|
+
|
64
|
+
let(:result) { ec2.volumes(:tags => {:name=> 'Test'}) }
|
65
|
+
|
66
|
+
it "should return an array of volumes" do
|
67
|
+
result.first.should be_a(Awsum::Ec2::Volume)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
33
71
|
describe "retrieving a volume by id" do
|
34
72
|
before do
|
35
73
|
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=DescribeVolumes.*VolumeId.1=vol-44d6322d|, :body => fixture('ec2/volumes'), :status => 200)
|
@@ -91,6 +129,15 @@ module Awsum
|
|
91
129
|
volume.delete.should be_true
|
92
130
|
end
|
93
131
|
|
132
|
+
it "should be able to force delete itself" do
|
133
|
+
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=DetachVolume.*Force=true.*VolumeId=vol-44d6322d|, :body => fixture('ec2/detach_volume'), :status => 200)
|
134
|
+
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=DeleteVolume.*VolumeId=vol-44d6322d|, :body => fixture('ec2/delete_volume'), :status => 200)
|
135
|
+
|
136
|
+
volume.should_receive(:status).and_return('available')
|
137
|
+
|
138
|
+
volume.delete!.should be_true
|
139
|
+
end
|
140
|
+
|
94
141
|
it "should be able to create a snapshot of itself" do
|
95
142
|
FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=CreateSnapshot.*VolumeId=vol-44d6322d|, :body => fixture('ec2/create_snapshot'), :status => 200)
|
96
143
|
|
@@ -20,7 +20,7 @@ module Awsum
|
|
20
20
|
|
21
21
|
describe "#send_query_request" do
|
22
22
|
it "should generate the correct request uri" do
|
23
|
-
FakeWeb.register_uri(:get, 'https://test.amazonaws.com/?AWSAccessKeyId=ABCDEF&Action=DescribeImages&ImageId.1=ami-1234567&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2009-01-23T03%3A34%3A38.000Z&Version=2010-
|
23
|
+
FakeWeb.register_uri(:get, 'https://test.amazonaws.com/?AWSAccessKeyId=ABCDEF&Action=DescribeImages&ImageId.1=ami-1234567&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2009-01-23T03%3A34%3A38.000Z&Version=2010-08-31&Signature=y5cfq8sS%2FinWuP5q2%2B8fs%2BDxfQx4dA%2F54fyNnL3LIkU%3D', :body => '', :status => 200)
|
24
24
|
|
25
25
|
subject.send(:send_query_request, {'Action' => 'DescribeImages', 'ImageId.1' => 'ami-1234567', 'Timestamp' => '2009-01-23T03:34:38.000Z'})
|
26
26
|
end
|
data/tools/dump.rb
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'rubygems'
|
3
|
+
|
4
|
+
ROOT = File.join(File.dirname(__FILE__), '..')
|
5
|
+
|
6
|
+
$LOAD_PATH << File.join(ROOT, 'lib')
|
7
|
+
require 'awsum/ec2'
|
8
|
+
require 'awsum/s3'
|
9
|
+
|
10
|
+
#Dumps the raw result of a call to the Awsum library
|
11
|
+
# Usage ruby dump.rb -a <access key> -s <secret key> -c <command to call>
|
12
|
+
#
|
13
|
+
# Awsum::Ec2 is available as ec2
|
14
|
+
# Awsum::S3 is available as s3
|
15
|
+
#
|
16
|
+
# Exampe
|
17
|
+
# ruby dump.rb -a ABC -s XYZ -c "ec2.images"
|
18
|
+
|
19
|
+
#Parse command line
|
20
|
+
access_key = nil
|
21
|
+
secret_key = nil
|
22
|
+
command = nil
|
23
|
+
ARGV.each_with_index do |arg, i|
|
24
|
+
case arg
|
25
|
+
when '-a'
|
26
|
+
access_key = ARGV[i+1]
|
27
|
+
when '-s'
|
28
|
+
secret_key = ARGV[i+1]
|
29
|
+
when '-c'
|
30
|
+
command = ARGV[i+1]
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
ENV['DEBUG'] = 'true'
|
35
|
+
|
36
|
+
ec2 = Awsum::Ec2.new(access_key, secret_key)
|
37
|
+
s3 = Awsum::S3.new(access_key, secret_key)
|
38
|
+
|
39
|
+
|
40
|
+
module Awsum
|
41
|
+
module Requestable
|
42
|
+
alias_method :old_handle_response, :handle_response
|
43
|
+
def handle_response(response, &block)
|
44
|
+
puts "block given" if block_given?
|
45
|
+
puts response.body
|
46
|
+
old_handle_response(response, &block)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
begin
|
52
|
+
eval(command)
|
53
|
+
rescue Awsum::Error => e
|
54
|
+
puts "ERROR: #{e.inspect}"
|
55
|
+
end
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awsum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.5.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Andrew Timberlake
|
@@ -14,11 +15,144 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date:
|
18
|
+
date: 2011-02-01 00:00:00 +02:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
22
|
+
prerelease: false
|
23
|
+
type: :runtime
|
24
|
+
name: rake
|
21
25
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
version: "0"
|
34
|
+
requirement: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
prerelease: false
|
37
|
+
type: :runtime
|
38
|
+
name: bundler
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 23
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 0
|
48
|
+
- 0
|
49
|
+
version: 1.0.0
|
50
|
+
requirement: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
prerelease: false
|
53
|
+
type: :development
|
54
|
+
name: jeweler
|
55
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 3
|
61
|
+
segments:
|
62
|
+
- 0
|
63
|
+
version: "0"
|
64
|
+
requirement: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
prerelease: false
|
67
|
+
type: :development
|
68
|
+
name: rspec
|
69
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 15
|
75
|
+
segments:
|
76
|
+
- 2
|
77
|
+
- 0
|
78
|
+
- 0
|
79
|
+
version: 2.0.0
|
80
|
+
requirement: *id004
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
prerelease: false
|
83
|
+
type: :development
|
84
|
+
name: fakeweb
|
85
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
hash: 3
|
91
|
+
segments:
|
92
|
+
- 0
|
93
|
+
version: "0"
|
94
|
+
requirement: *id005
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
prerelease: false
|
97
|
+
type: :development
|
98
|
+
name: shoulda
|
99
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
hash: 3
|
105
|
+
segments:
|
106
|
+
- 0
|
107
|
+
version: "0"
|
108
|
+
requirement: *id006
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
prerelease: false
|
111
|
+
type: :development
|
112
|
+
name: mocha
|
113
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
hash: 3
|
119
|
+
segments:
|
120
|
+
- 0
|
121
|
+
version: "0"
|
122
|
+
requirement: *id007
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
prerelease: false
|
125
|
+
type: :development
|
126
|
+
name: rcov
|
127
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
hash: 3
|
133
|
+
segments:
|
134
|
+
- 0
|
135
|
+
version: "0"
|
136
|
+
requirement: *id008
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
prerelease: false
|
139
|
+
type: :development
|
140
|
+
name: timecop
|
141
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
142
|
+
none: false
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
hash: 3
|
147
|
+
segments:
|
148
|
+
- 0
|
149
|
+
version: "0"
|
150
|
+
requirement: *id009
|
151
|
+
- !ruby/object:Gem::Dependency
|
152
|
+
prerelease: false
|
153
|
+
type: :development
|
154
|
+
name: rspec
|
155
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
22
156
|
none: false
|
23
157
|
requirements:
|
24
158
|
- - ">="
|
@@ -31,10 +165,7 @@ dependencies:
|
|
31
165
|
- beta
|
32
166
|
- 22
|
33
167
|
version: 2.0.0.beta.22
|
34
|
-
requirement: *
|
35
|
-
prerelease: false
|
36
|
-
type: :development
|
37
|
-
name: rspec
|
168
|
+
requirement: *id010
|
38
169
|
description:
|
39
170
|
email: andrew@andrewtimberlake.com
|
40
171
|
executables: []
|
@@ -46,7 +177,6 @@ extra_rdoc_files:
|
|
46
177
|
- README.rdoc
|
47
178
|
files:
|
48
179
|
- .autotest
|
49
|
-
- .gitignore
|
50
180
|
- .rspec
|
51
181
|
- Gemfile
|
52
182
|
- Gemfile.lock
|
@@ -54,6 +184,8 @@ files:
|
|
54
184
|
- README.rdoc
|
55
185
|
- Rakefile
|
56
186
|
- awsum.gemspec
|
187
|
+
- functional/ec2/instances_spec.rb
|
188
|
+
- functional/spec_helper.rb
|
57
189
|
- lib/awsum.rb
|
58
190
|
- lib/awsum/ec2.rb
|
59
191
|
- lib/awsum/ec2/address.rb
|
@@ -73,12 +205,15 @@ files:
|
|
73
205
|
- lib/awsum/ec2/parsers/reserved_instances_offering_parser.rb
|
74
206
|
- lib/awsum/ec2/parsers/security_group_parser.rb
|
75
207
|
- lib/awsum/ec2/parsers/snapshot_parser.rb
|
208
|
+
- lib/awsum/ec2/parsers/tag_parser.rb
|
76
209
|
- lib/awsum/ec2/parsers/volume_parser.rb
|
77
210
|
- lib/awsum/ec2/region.rb
|
78
211
|
- lib/awsum/ec2/reserved_instance.rb
|
79
212
|
- lib/awsum/ec2/reserved_instances_offering.rb
|
80
213
|
- lib/awsum/ec2/security_group.rb
|
81
214
|
- lib/awsum/ec2/snapshot.rb
|
215
|
+
- lib/awsum/ec2/state.rb
|
216
|
+
- lib/awsum/ec2/tag.rb
|
82
217
|
- lib/awsum/ec2/volume.rb
|
83
218
|
- lib/awsum/error.rb
|
84
219
|
- lib/awsum/net_fix.rb
|
@@ -94,6 +229,7 @@ files:
|
|
94
229
|
- spec/fixtures/ec2/allocate_address.xml
|
95
230
|
- spec/fixtures/ec2/associate_address.xml
|
96
231
|
- spec/fixtures/ec2/attach_volume.xml
|
232
|
+
- spec/fixtures/ec2/authorize_group_access.xml
|
97
233
|
- spec/fixtures/ec2/authorize_ip_access.xml
|
98
234
|
- spec/fixtures/ec2/authorize_owner_group_access.xml
|
99
235
|
- spec/fixtures/ec2/authorize_owner_group_access_error.xml
|
@@ -119,7 +255,7 @@ files:
|
|
119
255
|
- spec/fixtures/ec2/invalid_request_error.xml
|
120
256
|
- spec/fixtures/ec2/key_pairs.xml
|
121
257
|
- spec/fixtures/ec2/purchase_reserved_instances_offering.xml
|
122
|
-
- spec/fixtures/ec2/
|
258
|
+
- spec/fixtures/ec2/purchase_reserved_instances_offering2.xml
|
123
259
|
- spec/fixtures/ec2/regions.xml
|
124
260
|
- spec/fixtures/ec2/register_image.xml
|
125
261
|
- spec/fixtures/ec2/release_address.xml
|
@@ -131,6 +267,7 @@ files:
|
|
131
267
|
- spec/fixtures/ec2/run_instances.xml
|
132
268
|
- spec/fixtures/ec2/security_groups.xml
|
133
269
|
- spec/fixtures/ec2/snapshots.xml
|
270
|
+
- spec/fixtures/ec2/tags.xml
|
134
271
|
- spec/fixtures/ec2/terminate_instances.xml
|
135
272
|
- spec/fixtures/ec2/unassociated_address.xml
|
136
273
|
- spec/fixtures/ec2/volumes.xml
|
@@ -156,12 +293,15 @@ files:
|
|
156
293
|
- spec/lib/awsum/ec2/parsers/reserved_instances_offering_parser_spec.rb
|
157
294
|
- spec/lib/awsum/ec2/parsers/security_group_parser_spec.rb
|
158
295
|
- spec/lib/awsum/ec2/parsers/snapshot_parser_spec.rb
|
296
|
+
- spec/lib/awsum/ec2/parsers/tag_parser_spec.rb
|
159
297
|
- spec/lib/awsum/ec2/parsers/volume_parser_spec.rb
|
160
298
|
- spec/lib/awsum/ec2/region_spec.rb
|
161
299
|
- spec/lib/awsum/ec2/reserved_instance_spec.rb
|
162
300
|
- spec/lib/awsum/ec2/reserved_instances_offering_spec.rb
|
163
301
|
- spec/lib/awsum/ec2/security_group_spec.rb
|
164
302
|
- spec/lib/awsum/ec2/snapshots_spec.rb
|
303
|
+
- spec/lib/awsum/ec2/state_spec.rb
|
304
|
+
- spec/lib/awsum/ec2/tag_spec.rb
|
165
305
|
- spec/lib/awsum/ec2/volume_spec.rb
|
166
306
|
- spec/lib/awsum/ec2_spec.rb
|
167
307
|
- spec/lib/awsum/error_spec.rb
|
@@ -171,13 +311,14 @@ files:
|
|
171
311
|
- spec/lib/awsum/s3/parsers/bucket_parser_spec.rb
|
172
312
|
- spec/lib/awsum/s3/parsers/object_parser_spec.rb
|
173
313
|
- spec/spec_helper.rb
|
314
|
+
- tools/dump.rb
|
174
315
|
has_rdoc: true
|
175
316
|
homepage: http://andrewtimberlake.com/projects/awsum
|
176
317
|
licenses: []
|
177
318
|
|
178
319
|
post_install_message:
|
179
|
-
rdoc_options:
|
180
|
-
|
320
|
+
rdoc_options: []
|
321
|
+
|
181
322
|
require_paths:
|
182
323
|
- lib
|
183
324
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -206,35 +347,38 @@ signing_key:
|
|
206
347
|
specification_version: 3
|
207
348
|
summary: A library for working with Amazon Web Services in the most natural rubyish way
|
208
349
|
test_files:
|
209
|
-
- spec/lib/awsum/
|
210
|
-
- spec/lib/awsum/s3/parsers/bucket_parser_spec.rb
|
211
|
-
- spec/lib/awsum/s3/object_spec.rb
|
212
|
-
- spec/lib/awsum/s3/bucket_spec.rb
|
213
|
-
- spec/lib/awsum/ec2/reserved_instance_spec.rb
|
214
|
-
- spec/lib/awsum/ec2/region_spec.rb
|
350
|
+
- spec/lib/awsum/ec2/address_spec.rb
|
215
351
|
- spec/lib/awsum/ec2/availability_zones_spec.rb
|
216
|
-
- spec/lib/awsum/ec2/
|
217
|
-
- spec/lib/awsum/ec2/
|
352
|
+
- spec/lib/awsum/ec2/image_spec.rb
|
353
|
+
- spec/lib/awsum/ec2/instance_spec.rb
|
354
|
+
- spec/lib/awsum/ec2/keypair_spec.rb
|
355
|
+
- spec/lib/awsum/ec2/parsers/address_parser_spec.rb
|
356
|
+
- spec/lib/awsum/ec2/parsers/availability_zone_parser_spec.rb
|
218
357
|
- spec/lib/awsum/ec2/parsers/image_parser_spec.rb
|
219
|
-
- spec/lib/awsum/ec2/parsers/
|
358
|
+
- spec/lib/awsum/ec2/parsers/instance_parser_spec.rb
|
359
|
+
- spec/lib/awsum/ec2/parsers/keypair_parser_spec.rb
|
360
|
+
- spec/lib/awsum/ec2/parsers/purchase_reserved_instances_offering_parser_spec.rb
|
220
361
|
- spec/lib/awsum/ec2/parsers/region_parser_spec.rb
|
221
|
-
- spec/lib/awsum/ec2/parsers/
|
362
|
+
- spec/lib/awsum/ec2/parsers/register_image_parser_spec.rb
|
222
363
|
- spec/lib/awsum/ec2/parsers/reserved_instance_parser_spec.rb
|
223
|
-
- spec/lib/awsum/ec2/parsers/address_parser_spec.rb
|
224
|
-
- spec/lib/awsum/ec2/parsers/purchase_reserved_instances_offering_parser_spec.rb
|
225
|
-
- spec/lib/awsum/ec2/parsers/volume_parser_spec.rb
|
226
364
|
- spec/lib/awsum/ec2/parsers/reserved_instances_offering_parser_spec.rb
|
227
|
-
- spec/lib/awsum/ec2/parsers/
|
228
|
-
- spec/lib/awsum/ec2/parsers/
|
229
|
-
- spec/lib/awsum/ec2/
|
230
|
-
- spec/lib/awsum/ec2/
|
231
|
-
- spec/lib/awsum/ec2/
|
365
|
+
- spec/lib/awsum/ec2/parsers/security_group_parser_spec.rb
|
366
|
+
- spec/lib/awsum/ec2/parsers/snapshot_parser_spec.rb
|
367
|
+
- spec/lib/awsum/ec2/parsers/tag_parser_spec.rb
|
368
|
+
- spec/lib/awsum/ec2/parsers/volume_parser_spec.rb
|
369
|
+
- spec/lib/awsum/ec2/region_spec.rb
|
370
|
+
- spec/lib/awsum/ec2/reserved_instance_spec.rb
|
371
|
+
- spec/lib/awsum/ec2/reserved_instances_offering_spec.rb
|
372
|
+
- spec/lib/awsum/ec2/security_group_spec.rb
|
232
373
|
- spec/lib/awsum/ec2/snapshots_spec.rb
|
374
|
+
- spec/lib/awsum/ec2/state_spec.rb
|
375
|
+
- spec/lib/awsum/ec2/tag_spec.rb
|
233
376
|
- spec/lib/awsum/ec2/volume_spec.rb
|
234
|
-
- spec/lib/awsum/ec2/instance_spec.rb
|
235
|
-
- spec/lib/awsum/ec2/security_group_spec.rb
|
236
|
-
- spec/lib/awsum/ec2/reserved_instances_offering_spec.rb
|
237
377
|
- spec/lib/awsum/ec2_spec.rb
|
238
378
|
- spec/lib/awsum/error_spec.rb
|
239
379
|
- spec/lib/awsum/requestable_spec.rb
|
380
|
+
- spec/lib/awsum/s3/bucket_spec.rb
|
381
|
+
- spec/lib/awsum/s3/object_spec.rb
|
382
|
+
- spec/lib/awsum/s3/parsers/bucket_parser_spec.rb
|
383
|
+
- spec/lib/awsum/s3/parsers/object_parser_spec.rb
|
240
384
|
- spec/spec_helper.rb
|