Class: Capistrano::Deploy::Strategy::DrushMake

Inherits:
RemoteCache
  • Object
show all
Defined in:
lib/capistrano-drush-make.rb

Overview

Implements the deployment strategy that uses remote cache. Then calls drush make to deploy the drupal code to the final deployment location.

Instance Method Summary collapse

Instance Method Details

#check!Object



18
19
20
21
22
23
# File 'lib/capistrano-drush-make.rb', line 18

def check!
  super.check do |d|
    d.remote.command("drush")
    d.remote.writable(shared_path)
  end
end

#deploy!Object

Executes the SCM command for this strategy and writes the REVISION mark file to each host.



13
14
15
16
# File 'lib/capistrano-drush-make.rb', line 13

def deploy!
  update_repository_cache
  drush_make_repository_cache
end