Permalink
Browse files

error if there is a play flash set

  • Loading branch information...
1 parent f616fe5 commit 5d8b19c332d52fd6af1b3e43a0649695ddc4083c @sclasen sclasen committed Mar 14, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 init.rb
View
@@ -19,7 +19,8 @@ def push
end
display("Pushing #{war} to #{app}")
response = RestClient.post 'http://warpath.herokuapp.com/push', :appName => app, :apiKey => Heroku::Auth.api_key, :war => File.new(war, 'rb')
- if response.code == 200
+
+ if response.cookies['PLAY_FLASH'] == nil
display "Successfully pushed #{war} to #{app}"
else
display "Failed to push #{war} to #{app}"

0 comments on commit 5d8b19c

Please sign in to comment.