Browse Source

[COOK-3289] - before_deploy callback should behave like deploy callbacks

* use deploy/before_deploy.rb for before_deploy callback if nothing is
  specified and it exists in the repo
Douglas Thrift 10 years ago
parent
commit
0d968b3e1c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libraries/default.rb

+ 1 - 1
libraries/default.rb

@@ -168,7 +168,7 @@ class Chef
           end
           run_callback_from_file(callback_file)
         when nil
-          nil
+          run_callback_from_file("#{release_path}/deploy/#{what}.rb")
         else
           raise RuntimeError, "You gave me a callback I don't know what to do with: #{callback_code.inspect}"
         end