Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (34 sloc) 0.851 kb
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'lib')
require 'couchrest'
require 'yaml'
require 'json'
require 'rake'
require 'rake/testtask'
require 'bundler'
require 'soywiki'
Bundler::GemHelper.install_tasks
desc "build and push website"
task :web => :build_webpage do
`scp website/soywiki.html zoe2@instantwatcher.com:~/danielchoi.com/public/software/`
end
desc "build website locally"
task :weblocal => :build_webpage do
Dir.chdir("website") do
`open soywiki.html`
end
end
desc "build webpage"
task :build_webpage do
$LOAD_PATH.unshift 'website'
require 'gen'
Dir.chdir("website") do
html = Webpage.generate(Soywiki::VERSION)
File.open('soywiki.html', 'w') {|f| f.puts html}
end
end
desc "Run tests"
task :test do
$:.unshift File.expand_path("test")
MiniTest::Unit.autorun
end
task :default => :test
Jump to Line
Something went wrong with that request. Please try again.