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.



1255
1256
1257
# File 'lib/platform-api/client.rb', line 1255

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



1262
1263
1264
# File 'lib/platform-api/client.rb', line 1262

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

#listObject

List available stacks.



1267
1268
1269
# File 'lib/platform-api/client.rb', line 1267

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