Class: LabSystem::KrokiDockerShell

Inherits:
DockerShell show all
Defined in:
lib/lab_system/shells/kroki_docker_shell.rb

Class Method Summary collapse

Methods inherited from DockerShell

hello_alpine, hello_world, parse_version, version

Methods inherited from DevSystem::Shell

cruby?, engine, jruby?, linux?, mac?, os, ruby_version, unix?, windows?

Methods inherited from Liza::Controller

color, inherited, on_connected

Methods inherited from Liza::Unit

const_missing, division, part, system, #system, test_class

Class Method Details

.start_blocking_serverObject



11
12
13
14
15
16
17
18
# File 'lib/lab_system/shells/kroki_docker_shell.rb', line 11

def self.start_blocking_server
  log "You can visit #{url} for your kroki server"

  port = get :port
  KernelShell.call_backticks "docker run -p#{port}:8000 yuzutech/kroki"

  true
end

.urlObject



7
8
9
# File 'lib/lab_system/shells/kroki_docker_shell.rb', line 7

def self.url
  "http://localhost:#{get :port}"
end