Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (23 sloc) 0.62 kB
task :default => :test
task :test do
require "cutest"
Cutest.run(Dir["test/**/*.rb"])
end
task :style do
`rvm 1.9.2@evalsha exec compass compile -c config/sass.rb sass/styles.sass`
end
desc "Deploy"
task :deploy do
script = <<-EOS
source .bash_login
cd ~/evalsha
git pull
rvm gemset create evalsha
rvm 1.9.2@evalsha gem install bundler
rvm 1.9.2@evalsha exec bundle install --path vendor/bundle
rvm 1.9.2@evalsha exec compass compile -c config/sass.rb sass/styles.sass
mkdir -p tmp
touch tmp/restart.txt
EOS
sh "ssh evalsha.com '#{script.split("\n").map(&:strip).join(" && ")}'"
end
Jump to Line
Something went wrong with that request. Please try again.