Class: Capistrano::SCM::MakeCopy

Inherits:
Plugin
  • Object
show all
Defined in:
lib/capistrano/makecopy.rb

Instance Method Summary collapse

Instance Method Details

#define_tasksObject



4
5
6
# File 'lib/capistrano/makecopy.rb', line 4

def define_tasks
  eval_rakefile File.expand_path("../tasks/copy.rake", __FILE__)
end

#register_hooksObject



7
8
9
10
# File 'lib/capistrano/makecopy.rb', line 7

def register_hooks
  after "deploy:new_release_path", "copy:create_release"
  after 'deploy:finished', 'copy:clean'
end