Class: PlatformAPI::Slug
- Inherits:
- 
      Object
      
        - Object
- PlatformAPI::Slug
 
- Defined in:
- lib/platform-api/client.rb
Overview
A slug is a snapshot of your application code that is ready to run on the platform.
Instance Method Summary collapse
- 
  
    
      #create(app_id_or_app_name, body = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Create a new slug. 
- 
  
    
      #info(app_id_or_app_name, slug_id)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Info for existing slug. 
- 
  
    
      #initialize(client)  ⇒ Slug 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Slug. 
Constructor Details
#initialize(client) ⇒ Slug
Returns a new instance of Slug.
| 2757 2758 2759 | # File 'lib/platform-api/client.rb', line 2757 def initialize(client) @client = client end | 
Instance Method Details
#create(app_id_or_app_name, body = {}) ⇒ Object
Create a new slug. For more information please refer to Deploying Slugs using the Platform API.
| 2773 2774 2775 | # File 'lib/platform-api/client.rb', line 2773 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) ⇒ Object
Info for existing slug.
| 2765 2766 2767 | # File 'lib/platform-api/client.rb', line 2765 def info(app_id_or_app_name, slug_id) @client.slug.info(app_id_or_app_name, slug_id) end |