Sha256: f9741f87045c5123d58afb9d33d231bed115e7292c6ca522319add5e2db3b531

Contents?: true

Size: 749 Bytes

Versions: 40

Compression:

Stored size: 749 Bytes

Contents

# frozen_string_literal: true

# tau docker check daemon
module DockerCheckDaemon
  # Backend method for docker check daemon.
  # @return [Boolean] is the docker daemon running?
  # rubocop:disable Metrics/MethodLength
  def docker_check_daemon
    return true if @docker_daemon_running

    return false unless command_available_else_error? config.active['cmd_docker']

    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
  # rubocop:enable Metrics/MethodLength
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
takeltau-0.43.6 lib/takeltau/docker/check/daemon.rb
takeltau-0.43.4 lib/takeltau/docker/check/daemon.rb
takeltau-0.43.2 lib/takeltau/docker/check/daemon.rb
takeltau-0.43.1 lib/takeltau/docker/check/daemon.rb
takeltau-0.42.7 lib/takeltau/docker/check/daemon.rb
takeltau-0.42.5 lib/takeltau/docker/check/daemon.rb
takeltau-0.42.4 lib/takeltau/docker/check/daemon.rb
takeltau-0.42.3 lib/takeltau/docker/check/daemon.rb
takeltau-0.42.0 lib/takeltau/docker/check/daemon.rb
takeltau-0.41.10 lib/takeltau/docker/check/daemon.rb
takeltau-0.41.9 lib/takeltau/docker/check/daemon.rb
takeltau-0.41.0 lib/takeltau/docker/check/daemon.rb
takeltau-0.40.11 lib/takeltau/docker/check/daemon.rb
takeltau-0.40.9 lib/takeltau/docker/check/daemon.rb
takeltau-0.40.7 lib/takeltau/docker/check/daemon.rb
takeltau-0.40.6 lib/takeltau/docker/check/daemon.rb
takeltau-0.40.4 lib/takeltau/docker/check/daemon.rb
takeltau-0.40.3 lib/takeltau/docker/check/daemon.rb
takeltau-0.40.1 lib/takeltau/docker/check/daemon.rb
takeltau-0.40.0 lib/takeltau/docker/check/daemon.rb