Class: SnapDeploy::Provider::Heroku::API::Stack

Inherits:
Object
  • Object
show all
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

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.

Parameters:

  • stack_name_or_stack_id:

    unique name of stack or unique identifier of stack



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

#listObject

List available stacks.



1524
1525
1526
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1524

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