소스 검색

[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 년 전
부모
커밋
0d968b3e1c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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