Sha256: 0018878eab193aa2fecf8b99267ed1e51e04005c6cdecbaed82f166d6cdfabf5

Contents?: true

Size: 592 Bytes

Versions: 17

Compression:

Stored size: 592 Bytes

Contents

# frozen_string_literal: true

# takelage docker check running
module DockerCheckDaemon
  # Backend method for docker check running.
  # @return [Boolean] is the docker daemon running?
  def docker_check_daemon
    return true if @docker_daemon_running

    log.debug 'Check if the docker daemon is running'

    status = try config.active['cmd_docker_check_daemon_docker_info']

    unless status.exitstatus.zero?
      log.error 'The docker daemon is not running'
      return false
    end

    log.debug 'The docker daemon is running'
    @docker_daemon_running = true
    true
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
takelage-0.28.14 lib/takelage/docker/check/daemon.rb
takelage-0.28.11 lib/takelage/docker/check/daemon.rb
takelage-0.28.8 lib/takelage/docker/check/daemon.rb
takelage-0.28.7 lib/takelage/docker/check/daemon.rb
takelage-0.28.5 lib/takelage/docker/check/daemon.rb
takelage-0.27.1 lib/takelage/docker/check/daemon.rb
takelage-0.27.0 lib/takelage/docker/check/daemon.rb
takelage-0.26.7 lib/takelage/docker/check/daemon.rb
takelage-0.26.4 lib/takelage/docker/check/daemon.rb
takelage-0.26.3 lib/takelage/docker/check/daemon.rb
takelage-0.26.2 lib/takelage/docker/check/daemon.rb
takelage-0.25.10 lib/takelage/docker/check/daemon.rb
takelage-0.25.8 lib/takelage/docker/check/daemon.rb
takelage-0.24.0 lib/takelage/docker/check/daemon.rb
takelage-0.23.3 lib/takelage/docker/check/daemon.rb
takelage-0.23.2 lib/takelage/docker/check/daemon.rb
takelage-0.23.1 lib/takelage/docker/check/daemon.rb