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.



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

#listObject

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