Skip to content

Instantly share code, notes, and snippets.

@leinster
Last active March 29, 2018 13:10
Show Gist options
  • Select an option

  • Save leinster/6824696 to your computer and use it in GitHub Desktop.

Select an option

Save leinster/6824696 to your computer and use it in GitHub Desktop.
> require 'rubygems'
> require 'ohai'
> o = Ohai::System.new
> o.all_plugins
> o["hostname"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment