Class: DockerCloud::Service

Inherits:
Type
  • Object
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

Constructor Details

This class inherits a constructor from DockerCloud::Type

Instance Method Details

#amc_addressObject



111
112
113
# File 'lib/docker_cloud/service.rb', line 111

def amc_address
  info[:mac_address]
end

#auto_destroyObject



199
200
201
# File 'lib/docker_cloud/service.rb', line 199

def auto_destroy
  info[:autodestroy]
end

#auto_redeployObject



227
228
229
# File 'lib/docker_cloud/service.rb', line 227

def auto_redeploy
  info[:autoredeploy]
end

#auto_restartObject



195
196
197
# File 'lib/docker_cloud/service.rb', line 195

def auto_restart
  info[:autorestart]
end

#bindingsObject



191
192
193
# File 'lib/docker_cloud/service.rb', line 191

def bindings
  info[:bindings]
end

#cap_addObject



135
136
137
# File 'lib/docker_cloud/service.rb', line 135

def cap_add
  info[:cap_add]
end

#cap_dropObject



139
140
141
# File 'lib/docker_cloud/service.rb', line 139

def cap_drop
  info[:cap_add]
end

#cgroup_nameObject



115
116
117
# File 'lib/docker_cloud/service.rb', line 115

def cgroup_name
  info[:cgroup_name]
end

#container_env_varsObject



87
88
89
# File 'lib/docker_cloud/service.rb', line 87

def container_env_vars
  info[:container_envvars]
end

#container_portsObject



83
84
85
# File 'lib/docker_cloud/service.rb', line 83

def container_ports
  @container_ports ||= ContainerPorts.new(info[:container_ports])
end

#containersObject

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_sharesObject



167
168
169
# File 'lib/docker_cloud/service.rb', line 167

def cpu_shares
  info[:cpu_shares]
end

#cpusetObject



171
172
173
# File 'lib/docker_cloud/service.rb', line 171

def cpuset
  info[:cpuset]
end

#current_num_containersObject



55
56
57
# File 'lib/docker_cloud/service.rb', line 55

def current_num_containers
  info[:current_num_containers]
end

#deployed_dateObject



35
36
37
# File 'lib/docker_cloud/service.rb', line 35

def deployed_date
  info[:deployed_datetime]
end

#deployment_strategyObject



219
220
221
# File 'lib/docker_cloud/service.rb', line 219

def deployment_strategy
  info[:deployment_strategy]
end

#destroyed_dateObject



47
48
49
# File 'lib/docker_cloud/service.rb', line 47

def destroyed_date
  info[:destroyed_datetime]
end

#devicesObject



143
144
145
# File 'lib/docker_cloud/service.rb', line 143

def devices
  info[:devices]
end

#dnsObject



127
128
129
# File 'lib/docker_cloud/service.rb', line 127

def dns
  info[:dns]
end

#dns_searchObject



131
132
133
# File 'lib/docker_cloud/service.rb', line 131

def dns_search
  info[:dns_search]
end

#domain_nameObject



107
108
109
# File 'lib/docker_cloud/service.rb', line 107

def domain_name
  info[:domainname]
end

#entrypointObject



155
156
157
# File 'lib/docker_cloud/service.rb', line 155

def entrypoint
  info[:entrypoint]
end

#extra_hosrsObject



147
148
149
# File 'lib/docker_cloud/service.rb', line 147

def extra_hosrs
  info[:extra_hosrs]
end

#hostnameObject



103
104
105
# File 'lib/docker_cloud/service.rb', line 103

def hostname
  info[:hostname]
end

#image_nameObject



7
8
9
# File 'lib/docker_cloud/service.rb', line 7

def image_name
  info[:image_name]
end

#labelsObject



91
92
93
# File 'lib/docker_cloud/service.rb', line 91

def labels
  info[:labels]
end


207
208
209
# File 'lib/docker_cloud/service.rb', line 207

def link_variables
  info[:link_variables]
end

#linked_from_serviceObject



183
184
185
# File 'lib/docker_cloud/service.rb', line 183

def linked_from_service
  info[:linked_from_service]
end

#linked_to_serviceObject



187
188
189
# File 'lib/docker_cloud/service.rb', line 187

def linked_to_service
  info[:linked_to_service]
end

#memoryObject



175
176
177
# File 'lib/docker_cloud/service.rb', line 175

def memory
  info[:memory]
end

#memory_swapObject



179
180
181
# File 'lib/docker_cloud/service.rb', line 179

def memory_swap
  info[:memory_swap]
end

#nameObject



11
12
13
# File 'lib/docker_cloud/service.rb', line 11

def name
  info[:name]
end

#netObject



23
24
25
# File 'lib/docker_cloud/service.rb', line 23

def net
  info[:net]
end

#nicknameObject



231
232
233
# File 'lib/docker_cloud/service.rb', line 231

def nickname
  info[:nickname]
end

#pidObject



27
28
29
# File 'lib/docker_cloud/service.rb', line 27

def pid
  info[:pid]
end

#privilegedObject



211
212
213
# File 'lib/docker_cloud/service.rb', line 211

def privileged
  info[:privileged]
end

#public_dnsObject



15
16
17
# File 'lib/docker_cloud/service.rb', line 15

def public_dns
  info[:public_dns]
end

#read_onlyObject



215
216
217
# File 'lib/docker_cloud/service.rb', line 215

def read_only
  info[:read_only]
end

#resource_uriObject



3
4
5
# File 'lib/docker_cloud/service.rb', line 3

def resource_uri
  info[:resource_uri]
end

#rolesObject



203
204
205
# File 'lib/docker_cloud/service.rb', line 203

def roles
  info[:roles]
end

#run_commandObject



159
160
161
# File 'lib/docker_cloud/service.rb', line 159

def run_command
  info[:run_command]
end

#running_num_containersObject



59
60
61
# File 'lib/docker_cloud/service.rb', line 59

def running_num_containers
  info[:running_num_containers]
end

#security_optObject



151
152
153
# File 'lib/docker_cloud/service.rb', line 151

def security_opt
  info[:security_opt]
end

#sequential_deploymentObject



163
164
165
# File 'lib/docker_cloud/service.rb', line 163

def sequential_deployment
  info[:sequential_deployment]
end

#stackObject

def stack; info; end



68
69
70
# File 'lib/docker_cloud/service.rb', line 68

def stack
  @stack ||= client.stacks.find_by_uri(info[:stack])
end

#started_dateObject



39
40
41
# File 'lib/docker_cloud/service.rb', line 39

def started_date
  info[:started_datetime]
end

#stateObject



19
20
21
# File 'lib/docker_cloud/service.rb', line 19

def state
  info[:state]
end

#stdin_openObject



123
124
125
# File 'lib/docker_cloud/service.rb', line 123

def stdin_open
  info[:stdin_open]
end

#stopped_dateObject



43
44
45
# File 'lib/docker_cloud/service.rb', line 43

def stopped_date
  info[:stopped_datetime]
end

#stopped_num_containersObject



63
64
65
# File 'lib/docker_cloud/service.rb', line 63

def stopped_num_containers
  info[:stopped_run_containers]
end

#synchronizedObject



31
32
33
# File 'lib/docker_cloud/service.rb', line 31

def synchronized
  info[:synchronized]
end

#tagsObject



223
224
225
# File 'lib/docker_cloud/service.rb', line 223

def tags
  info[:tags]
end

#target_container_numObject



51
52
53
# File 'lib/docker_cloud/service.rb', line 51

def target_container_num
  info[:target_num_containers]
end

#ttyObject



119
120
121
# File 'lib/docker_cloud/service.rb', line 119

def tty
  info[:tty]
end

#userObject



99
100
101
# File 'lib/docker_cloud/service.rb', line 99

def user
  info[:user]
end

#working_dirObject



95
96
97
# File 'lib/docker_cloud/service.rb', line 95

def working_dir
  info[:working_dir]
end