Class: Heroku::Client::ConsoleSession
- Inherits:
-
Object
- Object
- Heroku::Client::ConsoleSession
- Defined in:
- lib/heroku/client.rb
Overview
support for console sessions
Instance Method Summary collapse
-
#initialize(id, app, client) ⇒ ConsoleSession
constructor
A new instance of ConsoleSession.
- #run(cmd) ⇒ Object
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 |