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.



160
161
162
# File 'lib/heroku/client.rb', line 160

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

Instance Method Details

#run(cmd) ⇒ Object



163
164
165
# File 'lib/heroku/client.rb', line 163

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