Przeglądaj źródła

[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 11 lat temu
rodzic
commit
0d968b3e1c
1 zmienionych plików z 1 dodań i 1 usunięć
  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