Skip to content

Instantly share code, notes, and snippets.

@harlanbarnes
Last active December 26, 2015 13:49
Show Gist options
  • Save harlanbarnes/7160949 to your computer and use it in GitHub Desktop.
Save harlanbarnes/7160949 to your computer and use it in GitHub Desktop.
Mixlib Shellout
shell = Mixlib::ShellOut.new("whatever the command is")
shell.run_command
if /^regex-me$/.match(shell.stdout)
node.default['site']['virtualbox'] = true
else
node.default['site']['virtualbox'] = false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment