Class: DockerCloud::Service
- Inherits:
-
Type
- Object
- Type
- DockerCloud::Service
show all
- Defined in:
- lib/docker_cloud/service.rb
Instance Attribute Summary
Attributes inherited from Type
#uuid
Instance Method Summary
collapse
Methods inherited from Type
#initialize
Instance Method Details
#amc_address ⇒ Object
111
112
113
|
# File 'lib/docker_cloud/service.rb', line 111
def amc_address
info[:mac_address]
end
|
#auto_destroy ⇒ Object
199
200
201
|
# File 'lib/docker_cloud/service.rb', line 199
def auto_destroy
info[:autodestroy]
end
|
#auto_redeploy ⇒ Object
227
228
229
|
# File 'lib/docker_cloud/service.rb', line 227
def auto_redeploy
info[:autoredeploy]
end
|
#auto_restart ⇒ Object
195
196
197
|
# File 'lib/docker_cloud/service.rb', line 195
def auto_restart
info[:autorestart]
end
|
#bindings ⇒ Object
191
192
193
|
# File 'lib/docker_cloud/service.rb', line 191
def bindings
info[:bindings]
end
|
#cap_add ⇒ Object
135
136
137
|
# File 'lib/docker_cloud/service.rb', line 135
def cap_add
info[:cap_add]
end
|
#cap_drop ⇒ Object
139
140
141
|
# File 'lib/docker_cloud/service.rb', line 139
def cap_drop
info[:cap_add]
end
|
#cgroup_name ⇒ Object
115
116
117
|
# File 'lib/docker_cloud/service.rb', line 115
def cgroup_name
info[:cgroup_name]
end
|
#container_env_vars ⇒ Object
87
88
89
|
# File 'lib/docker_cloud/service.rb', line 87
def container_env_vars
info[:container_envvars]
end
|
#container_ports ⇒ Object
83
84
85
|
# File 'lib/docker_cloud/service.rb', line 83
def container_ports
@container_ports ||= ContainerPorts.new(info[:container_ports])
end
|
#containers ⇒ Object
def containers; info; end
73
74
75
76
77
78
79
80
81
|
# File 'lib/docker_cloud/service.rb', line 73
def containers
if @containers.nil?
@containers = []
info[:containers].each do |uri|
@containers.push(client.containers.get_by_uri(uri))
end
end
@containers
end
|
#cpu_shares ⇒ Object
167
168
169
|
# File 'lib/docker_cloud/service.rb', line 167
def cpu_shares
info[:cpu_shares]
end
|
#cpuset ⇒ Object
171
172
173
|
# File 'lib/docker_cloud/service.rb', line 171
def cpuset
info[:cpuset]
end
|
#current_num_containers ⇒ Object
55
56
57
|
# File 'lib/docker_cloud/service.rb', line 55
def current_num_containers
info[:current_num_containers]
end
|
#deployed_date ⇒ Object
35
36
37
|
# File 'lib/docker_cloud/service.rb', line 35
def deployed_date
info[:deployed_datetime]
end
|
#deployment_strategy ⇒ Object
219
220
221
|
# File 'lib/docker_cloud/service.rb', line 219
def deployment_strategy
info[:deployment_strategy]
end
|
#destroyed_date ⇒ Object
47
48
49
|
# File 'lib/docker_cloud/service.rb', line 47
def destroyed_date
info[:destroyed_datetime]
end
|
#devices ⇒ Object
143
144
145
|
# File 'lib/docker_cloud/service.rb', line 143
def devices
info[:devices]
end
|
#dns ⇒ Object
127
128
129
|
# File 'lib/docker_cloud/service.rb', line 127
def dns
info[:dns]
end
|
#dns_search ⇒ Object
131
132
133
|
# File 'lib/docker_cloud/service.rb', line 131
def dns_search
info[:dns_search]
end
|
#domain_name ⇒ Object
107
108
109
|
# File 'lib/docker_cloud/service.rb', line 107
def domain_name
info[:domainname]
end
|
#entrypoint ⇒ Object
155
156
157
|
# File 'lib/docker_cloud/service.rb', line 155
def entrypoint
info[:entrypoint]
end
|
147
148
149
|
# File 'lib/docker_cloud/service.rb', line 147
def
info[:extra_hosrs]
end
|
#hostname ⇒ Object
103
104
105
|
# File 'lib/docker_cloud/service.rb', line 103
def hostname
info[:hostname]
end
|
#image_name ⇒ Object
7
8
9
|
# File 'lib/docker_cloud/service.rb', line 7
def image_name
info[:image_name]
end
|
#labels ⇒ Object
91
92
93
|
# File 'lib/docker_cloud/service.rb', line 91
def labels
info[:labels]
end
|
#link_variables ⇒ Object
207
208
209
|
# File 'lib/docker_cloud/service.rb', line 207
def link_variables
info[:link_variables]
end
|
#linked_from_service ⇒ Object
183
184
185
|
# File 'lib/docker_cloud/service.rb', line 183
def linked_from_service
info[:linked_from_service]
end
|
#linked_to_service ⇒ Object
187
188
189
|
# File 'lib/docker_cloud/service.rb', line 187
def linked_to_service
info[:linked_to_service]
end
|
#memory ⇒ Object
175
176
177
|
# File 'lib/docker_cloud/service.rb', line 175
def memory
info[:memory]
end
|
#memory_swap ⇒ Object
179
180
181
|
# File 'lib/docker_cloud/service.rb', line 179
def memory_swap
info[:memory_swap]
end
|
#name ⇒ Object
11
12
13
|
# File 'lib/docker_cloud/service.rb', line 11
def name
info[:name]
end
|
#net ⇒ Object
23
24
25
|
# File 'lib/docker_cloud/service.rb', line 23
def net
info[:net]
end
|
#nickname ⇒ Object
231
232
233
|
# File 'lib/docker_cloud/service.rb', line 231
def nickname
info[:nickname]
end
|
#pid ⇒ Object
27
28
29
|
# File 'lib/docker_cloud/service.rb', line 27
def pid
info[:pid]
end
|
#privileged ⇒ Object
211
212
213
|
# File 'lib/docker_cloud/service.rb', line 211
def privileged
info[:privileged]
end
|
#public_dns ⇒ Object
15
16
17
|
# File 'lib/docker_cloud/service.rb', line 15
def public_dns
info[:public_dns]
end
|
#read_only ⇒ Object
215
216
217
|
# File 'lib/docker_cloud/service.rb', line 215
def read_only
info[:read_only]
end
|
#resource_uri ⇒ Object
3
4
5
|
# File 'lib/docker_cloud/service.rb', line 3
def resource_uri
info[:resource_uri]
end
|
#roles ⇒ Object
203
204
205
|
# File 'lib/docker_cloud/service.rb', line 203
def roles
info[:roles]
end
|
#run_command ⇒ Object
159
160
161
|
# File 'lib/docker_cloud/service.rb', line 159
def run_command
info[:run_command]
end
|
#running_num_containers ⇒ Object
59
60
61
|
# File 'lib/docker_cloud/service.rb', line 59
def running_num_containers
info[:running_num_containers]
end
|
#security_opt ⇒ Object
151
152
153
|
# File 'lib/docker_cloud/service.rb', line 151
def security_opt
info[:security_opt]
end
|
#sequential_deployment ⇒ Object
163
164
165
|
# File 'lib/docker_cloud/service.rb', line 163
def sequential_deployment
info[:sequential_deployment]
end
|
#stack ⇒ Object
68
69
70
|
# File 'lib/docker_cloud/service.rb', line 68
def stack
@stack ||= client.stacks.find_by_uri(info[:stack])
end
|
#started_date ⇒ Object
39
40
41
|
# File 'lib/docker_cloud/service.rb', line 39
def started_date
info[:started_datetime]
end
|
#state ⇒ Object
19
20
21
|
# File 'lib/docker_cloud/service.rb', line 19
def state
info[:state]
end
|
#stdin_open ⇒ Object
123
124
125
|
# File 'lib/docker_cloud/service.rb', line 123
def stdin_open
info[:stdin_open]
end
|
#stopped_date ⇒ Object
43
44
45
|
# File 'lib/docker_cloud/service.rb', line 43
def stopped_date
info[:stopped_datetime]
end
|
#stopped_num_containers ⇒ Object
63
64
65
|
# File 'lib/docker_cloud/service.rb', line 63
def stopped_num_containers
info[:stopped_run_containers]
end
|
#synchronized ⇒ Object
31
32
33
|
# File 'lib/docker_cloud/service.rb', line 31
def synchronized
info[:synchronized]
end
|
223
224
225
|
# File 'lib/docker_cloud/service.rb', line 223
def tags
info[:tags]
end
|
#target_container_num ⇒ Object
51
52
53
|
# File 'lib/docker_cloud/service.rb', line 51
def target_container_num
info[:target_num_containers]
end
|
#tty ⇒ Object
119
120
121
|
# File 'lib/docker_cloud/service.rb', line 119
def tty
info[:tty]
end
|
#user ⇒ Object
99
100
101
|
# File 'lib/docker_cloud/service.rb', line 99
def user
info[:user]
end
|
#working_dir ⇒ Object
95
96
97
|
# File 'lib/docker_cloud/service.rb', line 95
def working_dir
info[:working_dir]
end
|