lib/gumdrop/template/default/Rakefile in gumdrop-0.2.16 vs lib/gumdrop/template/default/Rakefile in gumdrop-0.3
- old
+ new
@@ -5,10 +5,13 @@
# For the SYNC task
USER='user'
SERVER='server.com'
FOLDER="~/#{SERVER}"
+# Build folder (change if you change Gumdrop.config.output_dir)
+OUTPUT="output/"
+
desc "Build source files into output_dir"
task :build do
system("bundle exec gumdrop -b")
end
@@ -17,10 +20,10 @@
system("bundle exec gumdrop -s")
end
desc "Syncs with public server using rsync (if configured)"
task :sync do
- cmd= "rsync -avz --delete output/ #{USER}@#{SERVER}:#{FOLDER}"
+ cmd= "rsync -avz --delete #{OUTPUT} #{USER}@#{SERVER}:#{FOLDER}"
puts "Running:\n#{cmd}\n"
system(cmd)
puts "Done."
end
\ No newline at end of file