Skip to content

Instantly share code, notes, and snippets.

@baxang
Forked from adamstac/Rakefile
Created July 18, 2011 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baxang/1088872 to your computer and use it in GitHub Desktop.
Save baxang/1088872 to your computer and use it in GitHub Desktop.
ssh_user = "user@domain.com" # for rsync deployment
remote_root = "~/path/to/remote/" # for rsync deployment
namespace :styles do
desc "Clear styles"
task :clear do
puts "*** Clearing styles ***"
system "rm -Rfv css/*"
end
desc "Generate styles"
task :generate => [:clear] do
puts "*** Generating styles ***"
system "compass"
end
end
desc "Clears the styles, generates new ones and then deploys the theme"
task :deploy => 'styles:generate' do
puts "*** Deploying the site ***"
system("rsync -avz --delete . #{ssh_user}:#{remote_root}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment