Class: DockerCloud::NodeType
- Inherits:
-
Type
- Object
- Type
- DockerCloud::NodeType
show all
- Defined in:
- lib/docker_cloud/node_type.rb
Instance Attribute Summary
Attributes inherited from Type
#info
Instance Method Summary
collapse
Methods inherited from Type
#initialize, #reload, #uuid
Instance Method Details
#availability_zones ⇒ Object
28
29
30
31
32
33
34
35
36
|
# File 'lib/docker_cloud/node_type.rb', line 28
def availability_zones
if @az.nil?
@az = []
info[:availability_zones].each do |az|
@az.push(client.availability_zones.get_from_uri(az))
end
end
@az
end
|
#available ⇒ Object
def availability_zones; info; end
20
21
22
|
# File 'lib/docker_cloud/node_type.rb', line 20
def available
info[:available]
end
|
#label ⇒ Object
11
12
13
|
# File 'lib/docker_cloud/node_type.rb', line 11
def label
info[:label]
end
|
#name ⇒ Object
7
8
9
|
# File 'lib/docker_cloud/node_type.rb', line 7
def name
info[:name]
end
|
#provider ⇒ Object
24
25
26
|
# File 'lib/docker_cloud/node_type.rb', line 24
def provider
@provider ||= client.providers.get_from_uri(info[:provider]) unless info[:provider].nil?
end
|
#regions ⇒ Object
15
16
17
|
# File 'lib/docker_cloud/node_type.rb', line 15
def regions
info[:regions]
end
|
#resource_uri ⇒ Object
3
4
5
|
# File 'lib/docker_cloud/node_type.rb', line 3
def resource_uri
info[:resource_uri]
end
|