Sha256: e73cf85d8cdcfa83853a7ead041bd9d81f221212e0391264c0badfbd91319395

Contents?: true

Size: 599 Bytes

Versions: 15

Compression:

Stored size: 599 Bytes

Contents

# frozen_string_literal: true

# takelage docker check running
module DockerCheckSocat
  # Backend method for docker check socat.
  # @return [Boolean] is the socat command available?
  def docker_check_socat
    return true if @socat_command_available

    log.debug 'Check if the socat command is available'

    status = try config.active['cmd_docker_check_socat_which_socat']

    unless status.exitstatus.zero?
      log.debug 'The socat command is not available'
      return false
    end

    log.debug 'The socat command is available'
    @socat_command_available = true
    true
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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