Created
September 19, 2012 20:06
-
-
Save marcparadise/3751916 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
def run_callback_from_file(callback_file) | |
if whyrun_mode? | |
recipe_eval { } | |
else | |
if ::File.exist?(callback_file) | |
Dir.chdir(release_path) do | |
Chef::Log.info "#{@new_resource} running deploy hook #{callback_file}" | |
recipe_eval { from_file(callback_file) } | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment