Commit a720933b authored by Fabio Pelosin's avatar Fabio Pelosin

[Lockfile] Make path if needed before writing.

Should fix Travis errors.
parent 829a3741
...@@ -204,6 +204,7 @@ module Pod ...@@ -204,6 +204,7 @@ module Pod
# @return [void] Writes the Lockfile to {#path}. # @return [void] Writes the Lockfile to {#path}.
# #
def write_to_disk(path) def write_to_disk(path)
path.dirname.mkpath unless path.dirname.exist?
File.open(path, 'w') {|f| f.write(to_yaml) } File.open(path, 'w') {|f| f.write(to_yaml) }
defined_in_file = path defined_in_file = path
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment