Capistrano Variables While reading through Capistrano’s code I’ve come across many the variables used to configure deploy.rb. So I don’t forget them when I need them, I’ll document them here: application – required repository – required scm – defaults to :subversion deploy_via – defaults to :checkout revision – defaults to the latest head version rails_env …
Tag: capistrano
Daily Code Reading #18 – Capistrano recipes – invoke
Continuing from my tour of Capistrano‘s internals, I’m going to start looking through Capistrano‘s recipes now. A recipe for Capistrano is a unit of work, similar to how Rake uses tasks. I’m going to start with the basic invoke recipe today. The Code 1 2 desc < method) enddesc < method) end Review invoke is …
Daily Code Reading #17 – Capistrano control flow
I’m reading through Capistrano‘s code this week and decided to start with something different. Instead of jumping right into different methods, I’m going to review the overall flow to get an understanding of how one part works. For Capistrano, I’m going to figure out how cap deploy works. 1 2 3 4 #!/usr/bin/env ruby …