rdp / os

The OS gem allows for some easy telling if you’re on windows or not. OS.windows? as well as some other helper utilities
MIT License
145 stars 33 forks source link

Detect underlying Docker containers #34

Closed CHTJonas closed 5 years ago

CHTJonas commented 5 years ago

This PR adds support for detection of underlying Docker containers by examining the Linux kernel control group of the Ruby process.

Usage:

OS::Underlying.docker?
CHTJonas commented 5 years ago

Thanks @rdp! Any chance you might be able to make a new release to RubyGems?

rdp commented 5 years ago

attempted manual push! :)