Process ENV variables after Capfile
pearcec opened this issue · comments
Christian Pearce commented
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']