Skip to content

Instantly share code, notes, and snippets.

@mattray
Created October 25, 2013 16:06
Show Gist options
  • Save mattray/7157147 to your computer and use it in GitHub Desktop.
Save mattray/7157147 to your computer and use it in GitHub Desktop.
require 'mixlib/shell_out'
find = Mixlib::ShellOut.new("find . -name '*.rb'")
find.run_command
unless find.exit_status == '0'
include_recipe "foo::bar"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment