Class: Heroku::Client::ConsoleSession

Inherits:
Object
  • Object
show all
Defined in:
lib/heroku/client.rb

Overview

support for console sessions

Instance Method Summary collapse

Constructor Details

#initialize(id, app, client) ⇒ ConsoleSession

Returns a new instance of ConsoleSession


436
437
438
# File 'lib/heroku/client.rb', line 436

def initialize(id, app, client)
  @id = id; @app = app; @client = client
end

Instance Method Details

#run(cmd) ⇒ Object


439
440
441
# File 'lib/heroku/client.rb', line 439

def run(cmd)
  @client.run_console_command("/apps/#{@app}/consoles/#{@id}/command", cmd, "=> ")
end