Module: Dockerun

Defined in:
lib/dockerun.rb,
lib/dockerun/config.rb,
lib/dockerun/version.rb,
lib/dockerun/user_info.rb,
lib/dockerun/cli_prompt.rb,
lib/dockerun/command/run.rb,
lib/dockerun/command/init.rb,
lib/dockerun/bundler_helper.rb,
lib/dockerun/command/dockerun.rb,
lib/dockerun/command/reset_image.rb,
lib/dockerun/docker_image_helper.rb,
lib/dockerun/command/run_new_image.rb,
lib/dockerun/command/stop_container.rb,
lib/dockerun/docker_container_helper.rb,
lib/dockerun/command/remove_container.rb,
lib/dockerun/template/template_engine.rb,
lib/dockerun/template/template_writer.rb,
lib/dockerun/command/run_new_container.rb,
lib/dockerun/docker_command_factory_helper.rb,
lib/dockerun/template/jruby_template_writer.rb,
lib/dockerun/template/general_template_writer.rb

Defined Under Namespace

Modules: CliHelper, Command, CommandHelper, DockerCommandFactoryHelper, Template, UserInfo Classes: Config, Error

Constant Summary collapse

VERSION =
"0.3.1"

Class Method Summary collapse

Class Method Details

.is_user_debug_on?Boolean

Returns:

  • (Boolean)


38
39
40
41
# File 'lib/dockerun.rb', line 38

def self.is_user_debug_on?
  val = ENV["DOCKERUN_DEBUG"]
  (not val.nil? and val == "true")
end

.loggerObject



31
32
33
34
35
36
# File 'lib/dockerun.rb', line 31

def self.logger
  if @_logger.nil?
    @_logger = TeLogger::Tlogger.new
  end
  @_logger
end

.udebug(msg) ⇒ Object

Your code goes here…



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

def self.udebug(msg)
  logger.tdebug(:dockerun, msg) if is_user_debug_on?
end