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

Add Linux-specific OS#parse_os_release method #38

Closed jelera closed 4 years ago

jelera commented 4 years ago

It takes the /etc/os-release file and parses it into a ruby hash for easy access to things like distro name, id, id_like, version number, codename, etc.

It doesn't change or break anything and I tested it well with many virtual machines.

Cheers,

Jose Elera jelera@gmail.com

swrobel commented 4 years ago

@rdp would it be possible to get a new gem release with this included? thanks!

rdp commented 4 years ago

OK pushed 1.1.0 give it a shot. That was terrifying LOL. Also a PR to add it to the README would be OK too! :)

rdp commented 4 years ago

Here's an opportunity, add support for another requested distro :) https://github.com/rdp/os/issues/42