Parent

Methods

Class/Module Index [+]

Quicksearch

Heroku::CLI

Public Class Methods

start(*args) click to toggle source
# File lib/heroku/cli.rb, line 27
def self.start(*args)
  begin
    if $stdin.isatty
      $stdin.sync = true
    end
    if $stdout.isatty
      $stdout.sync = true
    end
    command = args.shift.strip rescue "help"
    Heroku::Command.load
    Heroku::Command.run(command, args)
  rescue Interrupt => e
    `stty icanon echo`
    if ENV["HEROKU_DEBUG"]
      styled_error(e)
    else
      error("Command cancelled.")
    end
  rescue => error
    styled_error(error)
    exit(1)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.