Sha256: 6fdf0f254d12f1393faadafeced6ae3e76a696db13f645100fd243e8c158af5f

Contents?: true

Size: 203 Bytes

Versions: 1

Compression:

Stored size: 203 Bytes

Contents

require "inside_docker/version"
require "pry"
class Object
  def inside_docker?
    File.readlines("/proc/1/sched").each do |line|
      return line.strip != "systemd (1, #threads: 1)"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inside_docker-0.1.0 lib/inside_docker.rb