Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
error if there is a play flash set
Browse files Browse the repository at this point in the history
  • Loading branch information
sclasen committed Mar 14, 2012
1 parent f616fe5 commit 5d8b19c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init.rb
Expand Up @@ -19,7 +19,8 @@ def push
end end
display("Pushing #{war} to #{app}") 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') 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}" display "Successfully pushed #{war} to #{app}"
else else
display "Failed to push #{war} to #{app}" display "Failed to push #{war} to #{app}"
Expand Down

0 comments on commit 5d8b19c

Please sign in to comment.