xforty / drush-deploy

Drupal deploy tool based on Capistrano and Drush
https://github.com/xforty/drush-deploy/wiki
Other
35 stars 4 forks source link

Process ENV variables after Capfile #8

Open pearcec opened 12 years ago

pearcec commented 12 years ago

I have the following Capfile

require 'drush_deploy'
set :scm, :git
set :repository, 'git@scm.xforty.com:www.xforty.com'
set :copy_exclude, 'srv/'

But I want to be able to execute from my local checkout in order to test changes I made to a distro.make file. So I try to run this

drush-deploy SCM=none REPO=. TARGET=targetname

Current woraround is to change the Capfile

set :scm, :git unless ENV['SCM']