Class: SnapDeploy::Provider::Heroku::API::Stack
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::Stack
- Defined in:
- lib/snap_deploy/provider/heroku/api.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
Stack info.
-
#initialize(client) ⇒ Stack
constructor
A new instance of Stack.
-
#list ⇒ Object
List available stacks.
Constructor Details
#initialize(client) ⇒ Stack
Returns a new instance of Stack.
1512 1513 1514 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1512 def initialize(client) @client = client end |
Instance Method Details
#info(stack_name_or_stack_id) ⇒ Object
Stack info.
1519 1520 1521 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1519 def info(stack_name_or_stack_id) @client.stack.info(stack_name_or_stack_id) end |
#list ⇒ Object
List available stacks.
1524 1525 1526 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1524 def list() @client.stack.list() end |