# File lib/heroku/commands/stack.rb, line 3
    def list
      include_deprecated = true if extract_option("--all")

      list = heroku.list_stacks(app, :include_deprecated => include_deprecated)
      lines = list.map do |stack|
        row = [stack['current'] ? '*' : ' ', stack['name']]
        row << '(beta)' if stack['beta']
        row << '(prepared, will migrate on next git push)' if stack['requested']
        row.join(' ')
      end
      display lines.join("\n")
    end