Class: PlatformAPI::Stack
- Inherits:
-
Object
- Object
- PlatformAPI::Stack
- Defined in:
- lib/platform-api/client.rb
Overview
Stacks are the different application execution environments available in the Heroku platform.
Instance Method Summary collapse
- #info(stack_name_or_stack_id) ⇒ Object
-
#initialize(client) ⇒ Stack
constructor
A new instance of Stack.
-
#list ⇒ Object
List available stacks.
- #list_by_app(app_id_or_app_name) ⇒ Object
Constructor Details
#initialize(client) ⇒ Stack
Returns a new instance of Stack.
4595 4596 4597 |
# File 'lib/platform-api/client.rb', line 4595 def initialize(client) @client = client end |
Instance Method Details
#info(stack_name_or_stack_id) ⇒ Object
4607 4608 4609 |
# File 'lib/platform-api/client.rb', line 4607 def info(stack_name_or_stack_id) @client.stack.info(stack_name_or_stack_id) end |
#list ⇒ Object
List available stacks.
4614 4615 4616 |
# File 'lib/platform-api/client.rb', line 4614 def list() @client.stack.list() end |
#list_by_app(app_id_or_app_name) ⇒ Object
4626 4627 4628 |
# File 'lib/platform-api/client.rb', line 4626 def list_by_app(app_id_or_app_name) @client.stack.list_by_app(app_id_or_app_name) end |