Skip to content
Permalink
Browse files

added capistrano recipe

  • Loading branch information...
linjunpop committed Aug 9, 2012
1 parent 28bbff1 commit 4fa48bbc3bcc04deefca3d223db1a91a466535aa
Showing with 20 additions and 0 deletions.
  1. +4 −0 README.md
  2. +1 −0 barista.gemspec
  3. +15 −0 lib/barista/capistrano.rb
@@ -221,6 +221,10 @@ An excellent example of these hooks in use is [barista\_growl](http://github.com
by Trevor Burnham — a gem perfect for development purposes that automatically shows Growl messages
on compilation.

## Deployment

Add `require 'barisa/capistrano'` to your `deploy.rb`.

# Contributors / Credits

The following people have all contributed to Barista:
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
"Rakefile",
"barista.gemspec",
"lib/barista.rb",
"lib/barista/capistrano.rb",
"lib/barista/compiler.rb",
"lib/barista/extensions.rb",
"lib/barista/filter.rb",
@@ -0,0 +1,15 @@
Capistrano::Configuration.instance.load do

before 'deploy:restart', 'barista:brew'

_cset(:barista_role) { :app }

namespace :barista do
desc 'Compile CoffeeScripts.'
task :brew, :roles => lambda { fetch(:barista_role) } do
rails_env = fetch(:rails_env, "production")
run("cd #{current_path} ; RAILS_ENV=#{rails_env} bundle exec rake barista:brew")
end
end
end

0 comments on commit 4fa48bb

Please sign in to comment.
You can’t perform that action at this time.