Class: DockerCloud::Stack
- Inherits:
-
Type
- Object
- Type
- DockerCloud::Stack
show all
- Defined in:
- lib/docker_cloud/stack.rb
Instance Attribute Summary
Attributes inherited from Type
#info
Instance Method Summary
collapse
Methods inherited from Type
#initialize, #reload, #resource_uri, #uuid
Instance Method Details
#deployed_date ⇒ Object
26
27
28
|
# File 'lib/docker_cloud/stack.rb', line 26
def deployed_date
info[:deployed_datetime]
end
|
#destroyed_date ⇒ Object
30
31
32
|
# File 'lib/docker_cloud/stack.rb', line 30
def destroyed_date
info[:destroyed_datetime]
end
|
#export ⇒ Object
58
59
60
|
# File 'lib/docker_cloud/stack.rb', line 58
def export
api.export(uuid)
end
|
#name ⇒ Object
3
4
5
|
# File 'lib/docker_cloud/stack.rb', line 3
def name
info[:name]
end
|
#nickname ⇒ Object
34
35
36
|
# File 'lib/docker_cloud/stack.rb', line 34
def nickname
info[:nickname]
end
|
#redeploy ⇒ Object
42
43
44
|
# File 'lib/docker_cloud/stack.rb', line 42
def redeploy
api.redeploy(uuid)
end
|
#services ⇒ Object
16
17
18
19
20
21
22
23
24
|
# File 'lib/docker_cloud/stack.rb', line 16
def services
if @services.nil?
@services = []
info[:services].each do |uri|
@services.push(client.services.get_from_uri(uri))
end
end
@services
end
|
#start ⇒ Object
38
39
40
|
# File 'lib/docker_cloud/stack.rb', line 38
def start
api.start(uuid)
end
|
#state ⇒ Object
7
8
9
|
# File 'lib/docker_cloud/stack.rb', line 7
def state
info[:state]
end
|
#stop ⇒ Object
50
51
52
|
# File 'lib/docker_cloud/stack.rb', line 50
def stop
api.stop(uuid)
end
|
#synchronized ⇒ Object
11
12
13
|
# File 'lib/docker_cloud/stack.rb', line 11
def synchronized
info[:synchronized]
end
|
#terminate ⇒ Object
46
47
48
|
# File 'lib/docker_cloud/stack.rb', line 46
def terminate
api.terminate(uuid)
end
|
#update(params) ⇒ Object
54
55
56
|
# File 'lib/docker_cloud/stack.rb', line 54
def update(params)
api.update(uuid, params)
end
|