Created
December 12, 2012 13:23
-
-
Save rodrigopinto/4267693 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def rows_msg(number) | |
| (number >= 9000)? "already hit 9000 rows" : "has #{number} rows" | |
| end | |
| rows = `heroku pg:info --app managerbook|grep Rows` | |
| result = rows.match(/(\d+)/)[1].to_i | |
| puts "Your app 'managerbook' %s" % rows_msg(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment