xforty / drush-deploy

Drupal deploy tool based on Capistrano and Drush

Home Page:https://github.com/xforty/drush-deploy/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Process ENV variables after Capfile

pearcec opened this issue · comments

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']