1
0
Fork 0
forked from OpenNeo/impress
impress/lib/tasks
Matchu c751173c52 Fix public_data:commit's symlinking on some platforms
Huh, curious, I think what I'm seeing is: on my development machine,
`File.exist?` returns true for symlinks, but, on our production
machine, `File.exist?` returns false for symlinks.

I imagine this is a difference in the implementation of the underlying
system calls? Curious!

This new check should work more reliably across platforms. I considered
checking both `exists?` and `symlink?`, but decided that, in the
unexpected case that `latest.sql.gz` exists but is an actual file
instead of a symlink like we expect, it's probably best to avoid
overwriting it anyway, and a crash on the `symlink` attempt is a
reasonable way to do that.
2024-05-02 13:10:30 -07:00
..
.gitkeep rails 3 2010-05-14 18:12:31 -04:00
db.rake Improve Unicode support, emojis don't crash us anymore lol! 2024-02-28 18:54:27 -08:00
pets.rake Add rake task to load pet data 2024-01-24 00:51:37 -08:00
public_data.rake Fix public_data:commit's symlinking on some platforms 2024-05-02 13:10:30 -07:00
swf_assets.rake Save manifest load info when preloading them, too 2024-02-25 16:02:36 -08:00