mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Fix load_from_file method for windows users [#19 tagged:committed state:resolved]
This commit is contained in:
parent
4c793391c4
commit
c1e927989b
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
*unreleased*
|
||||
|
||||
* Fix load_from_file method for windows users [Neil Wilson]
|
||||
|
||||
* Display a deprecation error if a remote git branch is specified [Tim Harper]
|
||||
|
||||
* Fix deployment recipes to use the updated sudo helper [Jamis Buck]
|
||||
|
|
|
@ -168,7 +168,7 @@ module Capistrano
|
|||
# Load a recipe from the named file. If +name+ is given, the file will
|
||||
# be reported using that name.
|
||||
def load_from_file(file, name=nil)
|
||||
file = find_file_in_load_path(file) unless file[0] == ?/
|
||||
file = find_file_in_load_path(file) unless File.file?(file)
|
||||
load :string => File.read(file), :name => name || file
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue