Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: without-shellw…
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (29 sloc) 0.777 kb
task :default => :test
task :test do
require "cutest"
Cutest.run(Dir["test/**/*.rb"])
end
task :formatting do
require "cutest"
Cutest.run(Dir["test/formatting.rb"])
end
task :update do
sh "rm -rf redis-doc"
sh "git clone -q --depth 1 git://github.com/antirez/redis-doc.git"
sh "rm -rf redis-doc/.git"
end
desc "Deploy"
task :deploy do
script = <<-EOS
cd ~/redis-doc
git pull
cd ~/redis-io
git pull
rvm 1.9.2 gem install dep --no-ri --no-rdoc
(rvm 1.9.2 exec dep check || rvm 1.9.2 exec dep install)
rvm 1.9.2 exec compass compile -c config/sass.rb views/styles.sass
kill -s INT $(cat log/redis-io.pid)
rvm 1.9.2 exec unicorn -D -c unicorn.rb -E production
EOS
sh "ssh redis-io '#{script.split("\n").map(&:strip).join(" && ")}'"
end
Jump to Line
Something went wrong with that request. Please try again.