fog 0.1.1 → 0.1.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/fog.gemspec +2 -2
- data/lib/fog.rb +1 -1
- data/lib/fog/aws/requests/ec2/associate_address.rb +1 -0
- data/lib/fog/aws/requests/ec2/attach_volume.rb +1 -0
- data/lib/fog/aws/requests/ec2/authorize_security_group_ingress.rb +3 -2
- data/lib/fog/aws/requests/ec2/delete_security_group.rb +1 -0
- data/lib/fog/aws/requests/ec2/delete_snapshot.rb +1 -0
- data/lib/fog/aws/requests/ec2/delete_volume.rb +1 -0
- data/lib/fog/aws/requests/ec2/describe_addresses.rb +3 -2
- data/lib/fog/aws/requests/ec2/describe_availability_zones.rb +3 -2
- data/lib/fog/aws/requests/ec2/describe_images.rb +3 -2
- data/lib/fog/aws/requests/ec2/describe_key_pairs.rb +3 -2
- data/lib/fog/aws/requests/ec2/describe_regions.rb +3 -2
- data/lib/fog/aws/requests/ec2/describe_reserved_instances.rb +3 -2
- data/lib/fog/aws/requests/ec2/describe_security_groups.rb +3 -2
- data/lib/fog/aws/requests/ec2/describe_snapshots.rb +3 -2
- data/lib/fog/aws/requests/ec2/describe_volumes.rb +3 -2
- data/lib/fog/aws/requests/ec2/detach_volume.rb +1 -0
- data/lib/fog/aws/requests/ec2/disassociate_address.rb +1 -0
- data/lib/fog/aws/requests/ec2/get_console_output.rb +1 -0
- data/lib/fog/aws/requests/ec2/modify_image_attributes.rb +1 -0
- data/lib/fog/aws/requests/ec2/reboot_instances.rb +3 -2
- data/lib/fog/aws/requests/ec2/release_address.rb +1 -0
- data/lib/fog/aws/requests/ec2/revoke_security_group_ingress.rb +3 -2
- data/lib/fog/aws/requests/ec2/terminate_instances.rb +3 -2
- metadata +3 -3
data/fog.gemspec
CHANGED
@@ -7,8 +7,8 @@ Gem::Specification.new do |s|
|
|
7
7
|
## If your rubyforge_project name is different, then edit it and comment out
|
8
8
|
## the sub! line in the Rakefile
|
9
9
|
s.name = 'fog'
|
10
|
-
s.version = '0.1.
|
11
|
-
s.date = '2010-05-
|
10
|
+
s.version = '0.1.2'
|
11
|
+
s.date = '2010-05-24'
|
12
12
|
s.rubyforge_project = 'fog'
|
13
13
|
|
14
14
|
## Make sure your summary is short. The description may be as long
|
data/lib/fog.rb
CHANGED
@@ -24,8 +24,9 @@ module Fog
|
|
24
24
|
# * 'return'<~Boolean> - success?
|
25
25
|
def authorize_security_group_ingress(options = {})
|
26
26
|
request({
|
27
|
-
'Action'
|
28
|
-
:
|
27
|
+
'Action' => 'AuthorizeSecurityGroupIngress',
|
28
|
+
:idempotent => true,
|
29
|
+
:parser => Fog::Parsers::AWS::EC2::Basic.new
|
29
30
|
}.merge!(options))
|
30
31
|
end
|
31
32
|
|
@@ -18,8 +18,9 @@ module Fog
|
|
18
18
|
def describe_addresses(public_ip = [])
|
19
19
|
params = AWS.indexed_param('PublicIp', public_ip)
|
20
20
|
request({
|
21
|
-
'Action'
|
22
|
-
:
|
21
|
+
'Action' => 'DescribeAddresses',
|
22
|
+
:idempotent => true,
|
23
|
+
:parser => Fog::Parsers::AWS::EC2::DescribeAddresses.new
|
23
24
|
}.merge!(params))
|
24
25
|
end
|
25
26
|
|
@@ -19,8 +19,9 @@ module Fog
|
|
19
19
|
def describe_availability_zones(zone_name = [])
|
20
20
|
params = AWS.indexed_param('ZoneName', zone_name)
|
21
21
|
request({
|
22
|
-
'Action'
|
23
|
-
:
|
22
|
+
'Action' => 'DescribeAvailabilityZones',
|
23
|
+
:idempotent => true,
|
24
|
+
:parser => Fog::Parsers::AWS::EC2::DescribeAvailabilityZones.new
|
24
25
|
}.merge!(params))
|
25
26
|
end
|
26
27
|
|
@@ -33,8 +33,9 @@ module Fog
|
|
33
33
|
options.merge!(AWS.indexed_param('ImageId', image_id))
|
34
34
|
end
|
35
35
|
request({
|
36
|
-
'Action'
|
37
|
-
:
|
36
|
+
'Action' => 'DescribeImages',
|
37
|
+
:idempotent => true,
|
38
|
+
:parser => Fog::Parsers::AWS::EC2::DescribeImages.new
|
38
39
|
}.merge!(options))
|
39
40
|
end
|
40
41
|
|
@@ -18,8 +18,9 @@ module Fog
|
|
18
18
|
def describe_key_pairs(key_name = [])
|
19
19
|
params = AWS.indexed_param('KeyName', key_name)
|
20
20
|
request({
|
21
|
-
'Action'
|
22
|
-
:
|
21
|
+
'Action' => 'DescribeKeyPairs',
|
22
|
+
:idempotent => true,
|
23
|
+
:parser => Fog::Parsers::AWS::EC2::DescribeKeyPairs.new
|
23
24
|
}.merge!(params))
|
24
25
|
end
|
25
26
|
|
@@ -18,8 +18,9 @@ module Fog
|
|
18
18
|
def describe_regions(region_name = [])
|
19
19
|
params = AWS.indexed_param('RegionName', region_name)
|
20
20
|
request({
|
21
|
-
'Action'
|
22
|
-
:
|
21
|
+
'Action' => 'DescribeRegions',
|
22
|
+
:idempotent => true,
|
23
|
+
:parser => Fog::Parsers::AWS::EC2::DescribeRegions.new
|
23
24
|
}.merge!(params))
|
24
25
|
end
|
25
26
|
|
@@ -26,8 +26,9 @@ module Fog
|
|
26
26
|
def describe_reserved_instances(reserved_instances_id = [])
|
27
27
|
params = AWS.indexed_param('ReservedInstancesId', reserved_instances_id)
|
28
28
|
request({
|
29
|
-
'Action'
|
30
|
-
:
|
29
|
+
'Action' => 'DescribeReservedInstances',
|
30
|
+
:idempotent => true,
|
31
|
+
:parser => Fog::Parsers::AWS::EC2::DescribeReservedInstances.new
|
31
32
|
}.merge!(params))
|
32
33
|
end
|
33
34
|
|
@@ -28,8 +28,9 @@ module Fog
|
|
28
28
|
def describe_security_groups(group_name = [])
|
29
29
|
params = AWS.indexed_param('GroupName', group_name)
|
30
30
|
request({
|
31
|
-
'Action'
|
32
|
-
:
|
31
|
+
'Action' => 'DescribeSecurityGroups',
|
32
|
+
:idempotent => true,
|
33
|
+
:parser => Fog::Parsers::AWS::EC2::DescribeSecurityGroups.new
|
33
34
|
}.merge!(params))
|
34
35
|
end
|
35
36
|
|
@@ -25,8 +25,9 @@ module Fog
|
|
25
25
|
options['Owner'] ||= 'self'
|
26
26
|
options.merge!(AWS.indexed_param('SnapshotId', snapshot_id))
|
27
27
|
request({
|
28
|
-
'Action'
|
29
|
-
:
|
28
|
+
'Action' => 'DescribeSnapshots',
|
29
|
+
:idempotent => true,
|
30
|
+
:parser => Fog::Parsers::AWS::EC2::DescribeSnapshots.new
|
30
31
|
}.merge!(options))
|
31
32
|
end
|
32
33
|
|
@@ -27,8 +27,9 @@ module Fog
|
|
27
27
|
def describe_volumes(volume_id = [])
|
28
28
|
params = AWS.indexed_param('VolumeId', volume_id)
|
29
29
|
request({
|
30
|
-
'Action'
|
31
|
-
:
|
30
|
+
'Action' => 'DescribeVolumes',
|
31
|
+
:idempotent => true,
|
32
|
+
:parser => Fog::Parsers::AWS::EC2::DescribeVolumes.new
|
32
33
|
}.merge!(params))
|
33
34
|
end
|
34
35
|
|
@@ -16,8 +16,9 @@ module Fog
|
|
16
16
|
def reboot_instances(instance_id = [])
|
17
17
|
params = AWS.indexed_param('InstanceId', instance_id)
|
18
18
|
request({
|
19
|
-
'Action'
|
20
|
-
:
|
19
|
+
'Action' => 'RebootInstances',
|
20
|
+
:idempotent => true,
|
21
|
+
:parser => Fog::Parsers::AWS::EC2::Basic.new
|
21
22
|
}.merge!(params))
|
22
23
|
end
|
23
24
|
|
@@ -24,8 +24,9 @@ module Fog
|
|
24
24
|
# * 'return'<~Boolean> - success?
|
25
25
|
def revoke_security_group_ingress(options = {})
|
26
26
|
request({
|
27
|
-
'Action'
|
28
|
-
:
|
27
|
+
'Action' => 'RevokeSecurityGroupIngress',
|
28
|
+
:idempotent => true,
|
29
|
+
:parser => Fog::Parsers::AWS::EC2::Basic.new
|
29
30
|
}.merge!(options))
|
30
31
|
end
|
31
32
|
|
@@ -23,8 +23,9 @@ module Fog
|
|
23
23
|
def terminate_instances(instance_id)
|
24
24
|
params = AWS.indexed_param('InstanceId', instance_id)
|
25
25
|
request({
|
26
|
-
'Action'
|
27
|
-
:
|
26
|
+
'Action' => 'TerminateInstances',
|
27
|
+
:idempotent => true,
|
28
|
+
:parser => Fog::Parsers::AWS::EC2::TerminateInstances.new
|
28
29
|
}.merge!(params))
|
29
30
|
end
|
30
31
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- geemus (Wesley Beary)
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-24 00:00:00 -07:00
|
18
18
|
default_executable: fog
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|