class Heroku::Client::ConsoleSession

support for console sessions

Public Class Methods

new(id, app, client) click to toggle source
# File lib/heroku/client.rb, line 437
def initialize(id, app, client)
  require 'rest_client'
  @id = id; @app = app; @client = client
end

Public Instance Methods

run(cmd) click to toggle source
# File lib/heroku/client.rb, line 441
def run(cmd)
  @client.run_console_command("/apps/#{@app}/consoles/#{@id}/command", cmd, "=> ")
end