fog 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.1'
11
- s.date = '2010-05-23'
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
@@ -35,7 +35,7 @@ require 'fog/vcloud'
35
35
  module Fog
36
36
 
37
37
  unless const_defined?(:VERSION)
38
- VERSION = '0.1.1'
38
+ VERSION = '0.1.2'
39
39
  end
40
40
 
41
41
  module Mock
@@ -19,6 +19,7 @@ module Fog
19
19
  'Action' => 'AssociateAddress',
20
20
  'InstanceId' => instance_id,
21
21
  'PublicIp' => public_ip,
22
+ :idempotent => true,
22
23
  :parser => Fog::Parsers::AWS::EC2::Basic.new
23
24
  )
24
25
  end
@@ -25,6 +25,7 @@ module Fog
25
25
  'VolumeId' => volume_id,
26
26
  'InstanceId' => instance_id,
27
27
  'Device' => device,
28
+ :idempotent => true,
28
29
  :parser => Fog::Parsers::AWS::EC2::AttachVolume.new
29
30
  )
30
31
  end
@@ -24,8 +24,9 @@ module Fog
24
24
  # * 'return'<~Boolean> - success?
25
25
  def authorize_security_group_ingress(options = {})
26
26
  request({
27
- 'Action' => 'AuthorizeSecurityGroupIngress',
28
- :parser => Fog::Parsers::AWS::EC2::Basic.new
27
+ 'Action' => 'AuthorizeSecurityGroupIngress',
28
+ :idempotent => true,
29
+ :parser => Fog::Parsers::AWS::EC2::Basic.new
29
30
  }.merge!(options))
30
31
  end
31
32
 
@@ -17,6 +17,7 @@ module Fog
17
17
  request(
18
18
  'Action' => 'DeleteSecurityGroup',
19
19
  'GroupName' => name,
20
+ :idempotent => true,
20
21
  :parser => Fog::Parsers::AWS::EC2::Basic.new
21
22
  )
22
23
  end
@@ -17,6 +17,7 @@ module Fog
17
17
  request(
18
18
  'Action' => 'DeleteSnapshot',
19
19
  'SnapshotId' => snapshot_id,
20
+ :idempotent => true,
20
21
  :parser => Fog::Parsers::AWS::EC2::Basic.new
21
22
  )
22
23
  end
@@ -17,6 +17,7 @@ module Fog
17
17
  request(
18
18
  'Action' => 'DeleteVolume',
19
19
  'VolumeId' => volume_id,
20
+ :idempotent => true,
20
21
  :parser => Fog::Parsers::AWS::EC2::Basic.new
21
22
  )
22
23
  end
@@ -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' => 'DescribeAddresses',
22
- :parser => Fog::Parsers::AWS::EC2::DescribeAddresses.new
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' => 'DescribeAvailabilityZones',
23
- :parser => Fog::Parsers::AWS::EC2::DescribeAvailabilityZones.new
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' => 'DescribeImages',
37
- :parser => Fog::Parsers::AWS::EC2::DescribeImages.new
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' => 'DescribeKeyPairs',
22
- :parser => Fog::Parsers::AWS::EC2::DescribeKeyPairs.new
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' => 'DescribeRegions',
22
- :parser => Fog::Parsers::AWS::EC2::DescribeRegions.new
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' => 'DescribeReservedInstances',
30
- :parser => Fog::Parsers::AWS::EC2::DescribeReservedInstances.new
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' => 'DescribeSecurityGroups',
32
- :parser => Fog::Parsers::AWS::EC2::DescribeSecurityGroups.new
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' => 'DescribeSnapshots',
29
- :parser => Fog::Parsers::AWS::EC2::DescribeSnapshots.new
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' => 'DescribeVolumes',
31
- :parser => Fog::Parsers::AWS::EC2::DescribeVolumes.new
30
+ 'Action' => 'DescribeVolumes',
31
+ :idempotent => true,
32
+ :parser => Fog::Parsers::AWS::EC2::DescribeVolumes.new
32
33
  }.merge!(params))
33
34
  end
34
35
 
@@ -25,6 +25,7 @@ module Fog
25
25
  request({
26
26
  'Action' => 'DetachVolume',
27
27
  'VolumeId' => volume_id,
28
+ :idempotent => true,
28
29
  :parser => Fog::Parsers::AWS::EC2::DetachVolume.new
29
30
  }.merge!(options))
30
31
  end
@@ -17,6 +17,7 @@ module Fog
17
17
  request(
18
18
  'Action' => 'DisassociateAddress',
19
19
  'PublicIp' => public_ip,
20
+ :idempotent => true,
20
21
  :parser => Fog::Parsers::AWS::EC2::Basic.new
21
22
  )
22
23
  end
@@ -19,6 +19,7 @@ module Fog
19
19
  request(
20
20
  'Action' => 'GetConsoleOutput',
21
21
  'InstanceId' => instance_id,
22
+ :idempotent => true,
22
23
  :parser => Fog::Parsers::AWS::EC2::GetConsoleOutput.new
23
24
  )
24
25
  end
@@ -20,6 +20,7 @@ module Fog
20
20
  'Attribute' => attribute,
21
21
  'ImageId' => image_id,
22
22
  'OperationType' => operation_type,
23
+ :idempotent => true,
23
24
  :parser => Fog::Parsers::AWS::EC2::Basic.new
24
25
  }.merge!(params))
25
26
  end
@@ -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' => 'RebootInstances',
20
- :parser => Fog::Parsers::AWS::EC2::Basic.new
19
+ 'Action' => 'RebootInstances',
20
+ :idempotent => true,
21
+ :parser => Fog::Parsers::AWS::EC2::Basic.new
21
22
  }.merge!(params))
22
23
  end
23
24
 
@@ -14,6 +14,7 @@ module Fog
14
14
  request(
15
15
  'Action' => 'ReleaseAddress',
16
16
  'PublicIp' => public_ip,
17
+ :idempotent => true,
17
18
  :parser => Fog::Parsers::AWS::EC2::Basic.new
18
19
  )
19
20
  end
@@ -24,8 +24,9 @@ module Fog
24
24
  # * 'return'<~Boolean> - success?
25
25
  def revoke_security_group_ingress(options = {})
26
26
  request({
27
- 'Action' => 'RevokeSecurityGroupIngress',
28
- :parser => Fog::Parsers::AWS::EC2::Basic.new
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' => 'TerminateInstances',
27
- :parser => Fog::Parsers::AWS::EC2::TerminateInstances.new
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
- - 1
9
- version: 0.1.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-23 00:00:00 -07:00
17
+ date: 2010-05-24 00:00:00 -07:00
18
18
  default_executable: fog
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency