# release slugs
#
class Heroku::Command::Release < Heroku::Command::Base

  # release SLUG_URL
  #
  # release a slug
  #
  # -p, --procfile PROCFILE  # use an alternate Procfile to define process types
  #
  def index
    error("Usage: heroku release SLUG_URL") unless slug_url = shift_argument
    validate_arguments!

    action("Releasing to #{app}.#{heroku.host}") do
      release_options = {
        :slug_url => slug_url,
        :cloud    => heroku.host
      }

      if options[:procfile] then
        release_options[:processes] = File.read(options[:procfile]).split("\n").inject({}) do |ax, line|
          if line =~ /^([A-Za-z0-9_]+):\s*(.+)$/
            ax[$1] = $2
          end
          ax
        end
      end

      release = heroku.release(app, "Anvil deploy", release_options) {
        print "."
        $stdout.flush
      }
      status release["release"]
    end
  end

private

end

# release slugs
#
class Heroku::Command::Release < Heroku::Command::Base

  # release SLUG_URL
  #
  # release a slug
  #
  # -p, --procfile PROCFILE  # use an alternate Procfile to define process types
  #
  def index
    error("Usage: heroku release SLUG_URL") unless slug_url = shift_argument
    validate_arguments!

    action("Releasing to #{app}.herokuapp.com") do
      release_options = {
        :slug_url => slug_url,
        :cloud    => heroku.host
      }

      if options[:procfile] then
        release_options[:processes] = File.read(options[:procfile]).split("\n").inject({}) do |ax, line|
          if line =~ /^([A-Za-z0-9_]+):\s*(.+)$/
            ax[$1] = $2
          end
          ax
        end
      end

      release = heroku.release(app, "Anvil deploy", release_options) {
        print "."
        $stdout.flush
      }
      status release["release"]
    end
  end

private

end

Fix hostname in "releasing to..." message
Fix hostname in "releasing to..." message

Uses `heroku.host`, which is wrong - "herokuapp.com" is correct!