Class: PlatformAPI::Stack

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

Stacks are the different application execution environments available in the Heroku platform.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Stack

Returns a new instance of Stack.



2722
2723
2724
# File 'lib/platform-api/client.rb', line 2722

def initialize(client)
  @client = client
end

Instance Method Details

#info(stack_name_or_stack_id) ⇒ Object

Stack info.

Parameters:

  • stack_name_or_stack_id:

    unique name of stack or unique identifier of stack



2729
2730
2731
# File 'lib/platform-api/client.rb', line 2729

def info(stack_name_or_stack_id)
  @client.stack.info(stack_name_or_stack_id)
end

#listObject

List available stacks.



2734
2735
2736
# File 'lib/platform-api/client.rb', line 2734

def list()
  @client.stack.list()
end