fog 0.0.27 → 0.0.28

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.27
1
+ 0.0.28
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fog}
8
- s.version = "0.0.27"
8
+ s.version = "0.0.28"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["geemus (Wesley Beary)"]
@@ -79,7 +79,7 @@ module Fog
79
79
  options['Placement.AvailabilityZone'] = @availability_zone
80
80
  end
81
81
  if @group_id
82
- options['groupId'] = @group_id
82
+ options['SecurityGroup'] = @group_id
83
83
  end
84
84
  if @instance_type
85
85
  options['InstanceType'] = @instance_type
@@ -9,6 +9,13 @@ module Fog
9
9
  attribute :ip_permissions, 'ipPermissions'
10
10
  attribute :owner_id, 'ownerId'
11
11
 
12
+ def authorize(options = {})
13
+ options = {
14
+ 'GroupName' => @name
15
+ }.merge!(options)
16
+ connection.authorize_security_group_ingress(options)
17
+ end
18
+
12
19
  def destroy
13
20
  connection.delete_security_group(@group_name)
14
21
  true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus (Wesley Beary)