Method: Dockit::Env#initialize

Defined in:
lib/dockit.rb

#initialize(depth: 2, debug: false) ⇒ Env

Initialize services and modules in the project.

depth [Integer]

How deep to recurse looking for modules/services

debug [Boolean]

Log docker-api calls.



38
39
40
41
42
43
44
# File 'lib/dockit.rb', line 38

def initialize(depth: 2, debug: false)
  @root = nil
  @modules  = find_subcommands(depth)
  @services = find_services(depth)

  Docker.logger = Dockit::Log.new if debug
end