Sha256: 9a071b133fb60f19be4bf6ba02ecbc4154d06339c90df24f41e5412d4f249dcf
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 Bytes
Contents
require 'rubygems' require "bundler/setup" require 'gumdrop' # For the SYNC task USER='user' SERVER='server.com' FOLDER="~/#{SERVER}" site= Gumdrop::Site.new "./Gumdrop" OUTPUT=site.config.output_dir desc "Build source files into output_dir" task :build do system("bundle exec gumdrop -b") end desc "Run development server" task :serve do 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}" 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gumdrop-0.7.5 | templates/blank/Rakefile |