fog 0.0.92 → 0.0.93
Sign up to get free protection for your applications and to get access to all the features.
- data/fog.gemspec +1 -1
- data/lib/fog.rb +1 -1
- data/lib/fog/aws/models/ec2/address.rb +6 -0
- metadata +2 -2
data/fog.gemspec
CHANGED
@@ -7,7 +7,7 @@ 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.0.
|
10
|
+
s.version = '0.0.93'
|
11
11
|
s.date = '2010-05-10'
|
12
12
|
s.rubyforge_project = 'fog'
|
13
13
|
|
data/lib/fog.rb
CHANGED
@@ -10,6 +10,12 @@ module Fog
|
|
10
10
|
|
11
11
|
attribute :server_id, 'instanceId'
|
12
12
|
|
13
|
+
def initialize(attributes = {})
|
14
|
+
# assign server first to prevent race condition with new_record?
|
15
|
+
self.server = attributes.delete(:server)
|
16
|
+
super
|
17
|
+
end
|
18
|
+
|
13
19
|
def destroy
|
14
20
|
requires :public_ip
|
15
21
|
|