openstack_activeresource 0.6.0 → 0.6.1

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.
@@ -17,7 +17,7 @@ Command line:
17
17
 
18
18
  Or in bundler Gemfile:
19
19
 
20
- gem "openstack_activeresource", "~> 0.6.0"
20
+ gem "openstack_activeresource", "~> 0.6.1"
21
21
 
22
22
  == Sample usages
23
23
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -44,6 +44,7 @@ module OpenStack
44
44
  attribute :vm_state, :string
45
45
  attribute :task, :string
46
46
  attribute :power_state, :integer
47
+ attribute :progress, :integer
47
48
  attribute :host_id, :string
48
49
  attribute :tenant_id, :string
49
50
  attribute :user_id, :string
@@ -85,6 +86,7 @@ module OpenStack
85
86
  :vm_state => attributes[:'OS-EXT-STS:vm_state'],
86
87
  :task => attributes[:'OS-EXT-STS:task_state'],
87
88
  :power_state => attributes['OS-EXT-STS:power_state'],
89
+ :progress => attributes[:progress],
88
90
  :host_id => attributes[:hostId],
89
91
  :user_data => attributes[:user_data],
90
92
  }
@@ -114,7 +116,7 @@ module OpenStack
114
116
 
115
117
  new_attributes[:nets] = []
116
118
  attributes[:addresses].each do |net_name, addresses|
117
- new_attributes[:nets] << { :name => net_name, :addresses => addresses }
119
+ new_attributes[:nets] << {:name => net_name, :addresses => addresses}
118
120
  end
119
121
  else
120
122
 
@@ -257,6 +259,7 @@ module OpenStack
257
259
  # * task
258
260
  # * power_state
259
261
  # * vm_state
262
+ # * ip addresses
260
263
  def refresh_status!
261
264
  if persisted?
262
265
  updated = Server.find(self.id)
@@ -265,8 +268,9 @@ module OpenStack
265
268
  self.task = updated.task
266
269
  self.power_state = updated.power_state
267
270
  self.vm_state = updated.vm_state
271
+ self.nets = updated.nets
268
272
  end
269
-
273
+
270
274
  self
271
275
  end
272
276
 
@@ -291,7 +295,7 @@ module OpenStack
291
295
 
292
296
  # Returns an extended (and localized) description for the server status
293
297
  def status_description
294
- I18n.t(SERVER_STATUSES[status],:scope => [:openstack, :status])
298
+ I18n.t(SERVER_STATUSES[status], :scope => [:openstack, :status])
295
299
  end
296
300
 
297
301
  # Returns a localized description for the server task (if any)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "openstack_activeresource"
8
- s.version = "0.6.0"
8
+ s.version = "0.6.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Davide Guerri"]
12
- s.date = "2013-03-28"
12
+ s.date = "2013-03-29"
13
13
  s.description = "OpenStack Ruby and RoR bindings implemented with ActiveResource - See also http://www.unicloud.it"
14
14
  s.email = "d.guerri@rd.unidata.it"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstack_activeresource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-28 00:00:00.000000000 Z
12
+ date: 2013-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -239,7 +239,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
239
239
  version: '0'
240
240
  segments:
241
241
  - 0
242
- hash: 3388499948375313041
242
+ hash: -3307332755739215709
243
243
  required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  none: false
245
245
  requirements: