Skip to content

Commit

Permalink
data size also shows number of tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Belo committed Apr 24, 2009
1 parent 320efce commit 3fda1ae
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/heroku/commands/app.rb
Expand Up @@ -53,7 +53,13 @@ def info
display "Addons: " + attrs[:addons].map { |a| a['description'] }.join(', ')
display "Repo size: #{format_bytes(attrs[:repo_size])}" if attrs[:repo_size]
display "Slug size: #{format_bytes(attrs[:slug_size])}" if attrs[:slug_size]
display "Data size: #{format_bytes(attrs[:database_size])}" if attrs[:database_size]
if attrs[:database_size]
data = format_bytes(attrs[:database_size])
if tables = attrs[:database_tables]
data = data.gsub('(empty)', '0K') + " in #{tables} table#{'s' if tables.to_i > 1}"
end
display "Data size: #{data}"
end

first = true
lead = "Collaborators:"
Expand Down

0 comments on commit 3fda1ae

Please sign in to comment.