Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Problem when capistrano variable 'stage' is undefined #1

Closed
SKoschnicke opened this Issue · 0 comments

2 participants

Sven Koschnicke Ville Lautanala
Sven Koschnicke

I think there is a problem in the capistrano file, line 19 (https://github.com/flowdock/flowdock-api/blob/master/lib/flowdock/capistrano.rb#L19 ):

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'

see http://groups.google.com/group/capistrano/browse_thread/thread/57733d9ce4c43ad2

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

Ville Lautanala lautis closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.