class Jelastic::DockerNode
Constants
- DockerRegistry
Attributes
cmd[RW]
envs[RW]
group[R]
image[RW]
links[RW]
registry[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/jelastic/docker_node.rb, line 8 def initialize @type = 'docker' super end
Public Instance Methods
as_application_server()
click to toggle source
# File lib/jelastic/docker_node.rb, line 14 def as_application_server @group = 'cp' end
as_cache()
click to toggle source
# File lib/jelastic/docker_node.rb, line 30 def as_cache @group = 'cache' end
as_extra_layer()
click to toggle source
# File lib/jelastic/docker_node.rb, line 34 def as_extra_layer @group = nil end
as_load_balancer()
click to toggle source
# File lib/jelastic/docker_node.rb, line 18 def as_load_balancer @group = 'bl' end
as_no_sql_database()
click to toggle source
# File lib/jelastic/docker_node.rb, line 22 def as_no_sql_database @group = 'nosqldb' end
as_sql_database()
click to toggle source
# File lib/jelastic/docker_node.rb, line 26 def as_sql_database @group = 'sqldb' end
set_registry(user, password, url = nil)
click to toggle source
# File lib/jelastic/docker_node.rb, line 38 def set_registry(user, password, url = nil) @registry = DockerRegistry.new(user, password, url) end