Problem when capistrano variable 'stage' is undefined #1

SKoschnicke opened this Issue Nov 2, 2011 · 0 comments

2 participants


I think there is a problem in the capistrano file, line 19 ( ):

set :rails_env, (!stage.nil?) ? stage : ENV['RAILS_ENV']

Because capistrano provides "variables" via method_missing, calling nil? on an undefined capistrano variable results in

 `method_missing': undefined local variable or method `stage'


A solution would be using variables.include?(:stage) instead of stage.nil?

@lautis lautis closed this Nov 2, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment