templates/default/Rakefile in gumdrop-0.7.5 vs templates/default/Rakefile in gumdrop-0.8.0
- old
+ new
@@ -5,34 +5,34 @@
# 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")
+ Gumdrop::CLI::Internal.new.build
end
desc "Run development server"
-task :serve do
- system("bundle exec gumdrop -s")
+task :server do
+ Gumdrop::CLI::Internal.new.server
end
+task :serve => :server
-desc "Syncs with public server using rsync (if configured)"
-task :sync do
- cmd= "rsync -avz --delete #{OUTPUT} #{USER}@#{SERVER}:#{FOLDER}"
- puts "Running:\n#{cmd}\n"
- system(cmd)
- puts "Done."
-end
-
desc "Outputs the Gumdrop version"
task :version do
puts Gumdrop::VERSION
end
task :default do
puts `rake -T`
-end
\ No newline at end of file
+end
+
+desc "Syncs with public server using rsync (if configured)"
+task :sync do
+ site= Gumdrop::Site.new Gumdrop.fetch_site_file
+ output= File.expand_path site.config.output_dir
+ cmd= "rsync -avz --delete #{output} #{USER}@#{SERVER}:#{FOLDER}"
+ puts "Running:\n#{cmd}\n"
+ system(cmd)
+ puts "Done."
+end