From 5d8b19c332d52fd6af1b3e43a0649695ddc4083c Mon Sep 17 00:00:00 2001 From: Scott Clasen Date: Wed, 14 Mar 2012 14:43:49 -0700 Subject: [PATCH] error if there is a play flash set --- init.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.rb b/init.rb index 30ac5ca..99dd51c 100644 --- a/init.rb +++ b/init.rb @@ -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}"