openstack_activeresource 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/open_stack/nova/compute/server.rb +17 -17
- data/openstack_activeresource.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
@@ -278,27 +278,27 @@ module OpenStack
|
|
278
278
|
end
|
279
279
|
|
280
280
|
SERVER_STATUSES = {
|
281
|
-
:ACTIVE =>
|
282
|
-
:BUILD =>
|
283
|
-
:DELETED =>
|
284
|
-
:ERROR =>
|
285
|
-
:HARD_REBOOT =>
|
286
|
-
:PASSWORD =>
|
287
|
-
:REBOOT =>
|
288
|
-
:REBUILD =>
|
289
|
-
:RESCUE =>
|
290
|
-
:RESIZE =>
|
291
|
-
:REVERT_RESIZE =>
|
292
|
-
:SHUTOFF =>
|
293
|
-
:SUSPENDED =>
|
294
|
-
:PAUSED =>
|
295
|
-
:UNKNOWN =>
|
296
|
-
:VERIFY_RESIZE =>
|
281
|
+
:ACTIVE => :active,
|
282
|
+
:BUILD => :building,
|
283
|
+
:DELETED => :deleted,
|
284
|
+
:ERROR => :in_error,
|
285
|
+
:HARD_REBOOT => :hard_rebooting,
|
286
|
+
:PASSWORD => :resetting_password,
|
287
|
+
:REBOOT => :soft_rebooting,
|
288
|
+
:REBUILD => :rebuilding_from_image,
|
289
|
+
:RESCUE => :in_rescue_mode,
|
290
|
+
:RESIZE => :resizing,
|
291
|
+
:REVERT_RESIZE => :revert_resizing,
|
292
|
+
:SHUTOFF => :user_powered_down,
|
293
|
+
:SUSPENDED => :suspended,
|
294
|
+
:PAUSED => :paused,
|
295
|
+
:UNKNOWN => :unknown,
|
296
|
+
:VERIFY_RESIZE => :awaiting_verification
|
297
297
|
}.with_indifferent_access
|
298
298
|
|
299
299
|
# Returns an extended (and localized) description for the server status
|
300
300
|
def status_description
|
301
|
-
SERVER_STATUSES[status]
|
301
|
+
I18n.t(SERVER_STATUSES[status],:scope => [:openstack, :status])
|
302
302
|
end
|
303
303
|
|
304
304
|
# 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.5.
|
8
|
+
s.version = "0.5.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-
|
12
|
+
s.date = "2013-03-15"
|
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.5.
|
4
|
+
version: 0.5.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-
|
12
|
+
date: 2013-03-15 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:
|
242
|
+
hash: 4405508785107764396
|
243
243
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
244
244
|
none: false
|
245
245
|
requirements:
|