lib/capper/rails.rb in capper-0.6.5 vs lib/capper/rails.rb in capper-0.6.6
- old
+ new
@@ -4,6 +4,17 @@
require 'capper/rvm'
require 'capper/bundler'
Capper.load do
_cset(:rails_env, "production")
+
+ namespace :rails do
+ desc "Generate rails configuration and helpers"
+ task :setup, :roles => :app, :except => { :no_release => true } do
+ upload_template_file("rails.console.sh",
+ File.join(bin_path, "con"),
+ :mode => "0755")
+ end
+ end
+
+ after "deploy:update_code", "rails:setup"
end