Created
July 28, 2010 14:59
-
-
Save fearoffish/494795 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class Chef | |
class Recipe | |
def run_for_instance_role(*roles, &block) | |
roles.map! {|a| a.to_s } | |
if roles.include?(node[:instance_role]) | |
block.call | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment