Module: Aesop::Capistrano
- Defined in:
- lib/aesop/recipes.rb
Class Method Summary collapse
Class Method Details
.load_into(configuration) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/aesop/recipes.rb', line 3 def self.load_into(configuration) configuration.load do after "deploy:finalize_update", "aesop:record_deployment" namespace :aesop do desc "Record the current time into a file called DEPLOY_TIME" task :record_deployment, :roles => :app do set :deployment_time, Time.now.to_i.to_s put fetch(:deployment_time), "#{configuration.fetch(:release_path)}/DEPLOY_TIME" end end end end |