class PlatformAPI::Slug
A slug is a snapshot of your application code that is ready to run on the platform.
Public Class Methods
new(client)
click to toggle source
# File lib/platform-api/client.rb, line 2811 def initialize(client) @client = client end
Public Instance Methods
create(app_id_or_app_name, body = {})
click to toggle source
Create a new slug. For more information please refer to [Deploying Slugs using the Platform API](devcenter.heroku.com/articles/platform-api-deploying-slugs).
@param app_id_or_app_name: unique identifier of app or unique name of app @param body: the object to pass as the request payload
# File lib/platform-api/client.rb, line 2827 def create(app_id_or_app_name, body = {}) @client.slug.create(app_id_or_app_name, body) end
info(app_id_or_app_name, slug_id)
click to toggle source
Info for existing slug.
@param app_id_or_app_name: unique identifier of app or unique name of app @param slug_id: unique identifier of slug
# File lib/platform-api/client.rb, line 2819 def info(app_id_or_app_name, slug_id) @client.slug.info(app_id_or_app_name, slug_id) end