Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix for problem with undefined stage #2

Merged
merged 1 commit into from

3 participants

@SKoschnicke

this should fix issue flowdock/flowdock-api#1

@lautis lautis merged commit 4a24e12 into from
@lautis
Owner

Thanks!

@gerad

calling this is:

a) overwriting our rails_env
and
b) causing capistrano to break with this error ./bundle/gems/capistrano-2.14.1/lib/capistrano/recipes/deploy/assets.rb:48:inblock (3 levels) in load': undefined method shellescape' for :staging:Symbol (NoMethodError)

wouldn't fetch be better than a set here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/flowdock/capistrano.rb
View
6 lib/flowdock/capistrano.rb
@@ -10,13 +10,13 @@
current_branch = capture("cat #{current_path}/BRANCH").chomp rescue "master"
set :current_branch, current_branch
end
-
+
task :save_deployed_branch do
run "echo '#{source.head}' > #{current_path}/BRANCH"
end
-
+
task :set_flowdock_api do
- set :rails_env, (!stage.nil?) ? stage : ENV['RAILS_ENV']
+ set :rails_env, variables.include?(:stage) ? stage : ENV['RAILS_ENV']
set :repo, Grit::Repo.new(".")
config = Grit::Config.new(repo)
set :flowdock_api, Flowdock::Flow.new(:api_token => flowdock_api_token,
Something went wrong with that request. Please try again.