ns-fog 1.22.6 → 1.22.7

Sign up to get free protection for your applications and to get access to all the features.
data/fog.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  ## If your rubyforge_project name is different, then edit it and comment out
7
7
  ## the sub! line in the Rakefile
8
8
  s.name = 'ns-fog'
9
- s.version = '1.22.6'
9
+ s.version = '1.22.7'
10
10
  s.date = '2014-07-21'
11
11
  s.rubyforge_project = 'fog'
12
12
 
@@ -13,7 +13,7 @@ module Fog
13
13
  attribute :server_id
14
14
  attribute :router_id
15
15
  attribute :bandwidth
16
- attribute :state, :aliases => 'status'
16
+ attribute :status
17
17
  attribute :need_icp
18
18
  attribute :transition_status
19
19
 
@@ -45,7 +45,7 @@ module Fog
45
45
  end
46
46
 
47
47
  def ready?
48
- state == 'available' and transition_status == ''
48
+ status == 'available' and transition_status == ''
49
49
  end
50
50
 
51
51
  def server
@@ -8,7 +8,7 @@ module Fog
8
8
 
9
9
  identity :id, :aliases => 'image_id'
10
10
 
11
- attribute :state, :aliases => 'status'
11
+ attribute :status
12
12
  attribute :processor_type
13
13
  attribute :transition_status
14
14
  attribute :recommended_type
@@ -24,7 +24,7 @@ module Fog
24
24
  attribute :description
25
25
 
26
26
  def ready?
27
- state == 'available'
27
+ status == 'available'
28
28
  end
29
29
 
30
30
  def is_public
@@ -6,7 +6,7 @@ module Fog
6
6
  class QingCloud
7
7
  class Router < Fog::QingCloud::Model
8
8
  identity :id, :aliases => 'router_id'
9
- attribute :state, :aliases => 'status'
9
+ attribute :status
10
10
  attribute :is_applied
11
11
  attribute :description
12
12
  attribute :transition_status
@@ -45,7 +45,7 @@ module Fog
45
45
  end
46
46
 
47
47
  def ready?
48
- state == 'active' and transition_status == ''
48
+ status == 'active' and transition_status == ''
49
49
  end
50
50
 
51
51
  def eip=(ip)
@@ -93,7 +93,7 @@ module Fog
93
93
  def poweroff
94
94
  if persisted?
95
95
  service.routers_power(id, 'off')
96
- wait_for {state == 'poweroffed'}
96
+ wait_for {status == 'poweroffed'}
97
97
  end
98
98
  true
99
99
  end
@@ -15,7 +15,7 @@ module Fog
15
15
  attribute :flavor_id, :aliases => 'instance_type'
16
16
  attribute :image_id
17
17
  attribute :memory_current
18
- attribute :state, :aliases => 'status'
18
+ attribute :status
19
19
  attribute :vxnet_ids
20
20
  attribute :volume_ids
21
21
  attribute :keypair_ids
@@ -76,7 +76,7 @@ module Fog
76
76
  end
77
77
 
78
78
  def ready?
79
- state == 'running'
79
+ status == 'running'
80
80
  end
81
81
 
82
82
  def reboot
@@ -12,7 +12,7 @@ module Fog
12
12
  attribute :status_time
13
13
  attribute :server_id, :aliases => 'instance_id'
14
14
  attribute :size
15
- attribute :state, :aliases => 'status'
15
+ attribute :status
16
16
  attribute :name, :aliases => 'volume_name'
17
17
  attribute :description
18
18
  attribute :transition_status
@@ -37,7 +37,7 @@ module Fog
37
37
  end
38
38
 
39
39
  def ready?
40
- state == 'available' and transition_status == ''
40
+ status == 'available' and transition_status == ''
41
41
  end
42
42
 
43
43
  def save
@@ -74,7 +74,7 @@ module Fog
74
74
  @server = new_server
75
75
  self.zone = new_server.zone
76
76
  elsif new_server
77
- if state == 'in-use'
77
+ if status == 'in-use'
78
78
  raise Fog::QingCloud::Errors::PermissionDenied, "The disk is already attached to instance #{server_id}"
79
79
  end
80
80
 
@@ -66,7 +66,7 @@ module Fog
66
66
  # server_id=nil,
67
67
  # size=10,
68
68
  # snapshot_id=nil,
69
- # state="available",
69
+ # status="available",
70
70
  # tags={}
71
71
  # >
72
72
  #
@@ -33,7 +33,7 @@ module Fog
33
33
  # filters={}
34
34
  # [
35
35
  # vxnet_id=vxnet-someId,
36
- # state=[pending|available],
36
+ # status=[pending|available],
37
37
  # vpc_id=vpc-someId
38
38
  # cidr_block=someIpRange
39
39
  # available_ip_address_count=someInt
@@ -68,7 +68,7 @@ module Fog
68
68
  #>> QingCloud.vxnets.get("vxnet-12345678")
69
69
  # <Fog::QingCloud::Compute::Vxnet
70
70
  # vxnet_id=vxnet-someId,
71
- # state=[pending|available],
71
+ # status=[pending|available],
72
72
  # vpc_id=vpc-someId
73
73
  # cidr_block=someIpRange
74
74
  # available_ip_address_count=someInt
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ns-fog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.6
4
+ version: 1.22.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: