Class: DockerCloud::NodeCluster
- Inherits:
-
Type
- Object
- Type
- DockerCloud::NodeCluster
show all
- Defined in:
- lib/docker_cloud/node_cluster.rb
Instance Attribute Summary
Attributes inherited from Type
#uuid
Instance Method Summary
collapse
Methods inherited from Type
#initialize
Instance Method Details
#current_num_nodes ⇒ Object
43
44
45
|
# File 'lib/docker_cloud/node_cluster.rb', line 43
def current_num_nodes
info[:current_num_nodes]
end
|
#deployed_date ⇒ Object
47
48
49
|
# File 'lib/docker_cloud/node_cluster.rb', line 47
def deployed_date
info[:deployed_datetime]
end
|
#destroyed_date ⇒ Object
51
52
53
|
# File 'lib/docker_cloud/node_cluster.rb', line 51
def destroyed_date
info[:destroyed_datetime]
end
|
#disk_size ⇒ Object
20
21
22
|
# File 'lib/docker_cloud/node_cluster.rb', line 20
def disk_size
info[:disk]
end
|
#name ⇒ Object
7
8
9
|
# File 'lib/docker_cloud/node_cluster.rb', line 7
def name
info[:name]
end
|
#nickname ⇒ Object
63
64
65
|
# File 'lib/docker_cloud/node_cluster.rb', line 63
def nickname
info[:nickname]
end
|
#node_type ⇒ Object
16
17
18
|
# File 'lib/docker_cloud/node_cluster.rb', line 16
def node_type
@node_type ||= client.node_types.get_from_uri(info[:node_type])
end
|
#nodes ⇒ Object
24
25
26
27
28
29
30
31
32
|
# File 'lib/docker_cloud/node_cluster.rb', line 24
def nodes
if @nodes.nil?
@nodes = []
info[:nodes].each do |node_uri|
@nodes.push(client.nodes.get_from_uri(node_uri))
end
end
@nodes
end
|
#provider_options ⇒ Object
59
60
61
|
# File 'lib/docker_cloud/node_cluster.rb', line 59
def provider_options
info[:provider_options]
end
|
#region ⇒ Object
35
36
37
|
# File 'lib/docker_cloud/node_cluster.rb', line 35
def region
@region ||= client.regions.get_from_uri(info[:region])
end
|
#resource_uri ⇒ Object
3
4
5
|
# File 'lib/docker_cloud/node_cluster.rb', line 3
def resource_uri
info[:resource_uri]
end
|
#state ⇒ Object
11
12
13
|
# File 'lib/docker_cloud/node_cluster.rb', line 11
def state
info[:state]
end
|
55
56
57
|
# File 'lib/docker_cloud/node_cluster.rb', line 55
def tags
info[:tags]
end
|
#target_num_nodes ⇒ Object
39
40
41
|
# File 'lib/docker_cloud/node_cluster.rb', line 39
def target_num_nodes
info[:target_num_nodes]
end
|