Angry Rake Deploy due to sync app's artifact...

314 views
Skip to first unread message

Brian Moses

unread,
May 8, 2014, 1:38:36 AM5/8/14
to octo...@googlegroups.com
I use the Android App,  FolderSync to keep my ..\source\_posts folder synchronized up to Google Drive on both my phone and tablet.

That app places a file named ".ttxfolder" which must contain some data about when it was last synch'ed up.

However,  this file is making the "rake deploy" fail:

O:\>rake deploy
cp -r source/Images/2013/Monarch Lake/.picasa.ini public/Images/2013/Monarch Lake/.picasa.ini
cp -r source/_posts/.ttxfolder public/_posts/.ttxfolder
rake aborted!
No such file or directory - public/_posts/.ttxfolder

Tasks: TOP => copydot
(See full trace by running task with --trace)


 I wound up "fixing" it by modifying the rake file in the copydot task, see the highlighted text below...

desc "copy dot files for deployment"
task :copydot, :source, :dest do |t, args|
  FileList["#{args.source}/**/.*"].exclude("**/.", "**/..", "**/.DS_Store", "**/._*", "source/_posts/.ttxfolder").each do |file|
    cp_r file, file.gsub(/#{args.source}/, "#{args.dest}") unless File.directory?(file)
  end
end

I'm pretty much a neophyte when it comes to tinkering with the Rakefile,  so I thought it'd make sense if I ran it by some other sets of eyeballs.  My solution seems to work, but there's always the chance that I'm overlooking something.

Thanks for your help!

Brian
Reply all
Reply to author
Forward
0 new messages