public
Description: Remote multi-server automation tool. This repository is no longer being actively maintained. Please ask on the mailing list to find someone who has a well-maintained fork. Thanks!
Homepage: http://www.capify.org
Clone URL: git://github.com/jamis/capistrano.git
Fix load_from_file method for windows users [#19 tagged:committed 
state:resolved]
Jamis Buck (author)
Sun May 25 20:06:02 -0700 2008
commit  c1e927989bccb4197f9877e2fa836a064712b5d7
tree    2aced99503aa84d94039f86cf22e564ee154952e
parent  4c793391c4bb8fbdc1c090767c50777905ddc17e
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *unreleased*
0
 
0
+* Fix load_from_file method for windows users [Neil Wilson]
0
+
0
 * Display a deprecation error if a remote git branch is specified [Tim Harper]
0
 
0
 * Fix deployment recipes to use the updated sudo helper [Jamis Buck]
...
168
169
170
171
 
172
173
174
...
168
169
170
 
171
172
173
174
0
@@ -168,7 +168,7 @@ module Capistrano
0
         # Load a recipe from the named file. If +name+ is given, the file will
0
         # be reported using that name.
0
         def load_from_file(file, name=nil)
0
-          file = find_file_in_load_path(file) unless file[0] == ?/
0
+          file = find_file_in_load_path(file) unless File.file?(file)
0
           load :string => File.read(file), :name => name || file
0
         end
0
 

Comments