Skip to content

Commit

Permalink
refactored error message for testing application status
Browse files Browse the repository at this point in the history
  • Loading branch information
Danish Khan committed Feb 15, 2011
1 parent 2909816 commit 0fffa88
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/heroku2ey/cli.rb
Expand Up @@ -94,9 +94,7 @@ def migrate(path)

deploy_path_found = ssh_appcloud "test -d #{@app.name}/current && echo 'found'",
:path => '/data', :return_output => true
unless deploy_path_found =~ /found/
error "Please deploy your AppCloud application before running migration."
end
error "Please deploy your AppCloud application before running migration." unless deploy_path_found =~ /found/

say "Setting up Heroku on AppCloud..."

Expand Down

0 comments on commit 0fffa88

Please sign in to comment.