Sha256: 511b86b8176af1ccf5de75cde7778063239a925352b213c1133c496a8b34d931
Contents?: true
Size: 625 Bytes
Versions: 6
Compression:
Stored size: 625 Bytes
Contents
require 'rubygems' require "bundler/setup" require 'gumdrop' # For the SYNC task USER='user' SERVER='server.com' FOLDER="~/#{SERVER}" desc "Build source files into output" task :build do Gumdrop.run() end desc "Run development server" task :serve do Gumdrop.config.auto_run= true Gumdrop::Server end 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 `rake -T` end
Version data entries
6 entries across 6 versions & 1 rubygems