Last active
December 26, 2015 13:49
-
-
Save harlanbarnes/7160949 to your computer and use it in GitHub Desktop.
Mixlib Shellout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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