class Escobar::Heroku::Slug
Class representing a heroku slug
Attributes
app_id[R]
app_name[R]
client[R]
id[R]
sha[RW]
Public Class Methods
new(client, app_id, id)
click to toggle source
# File lib/escobar/heroku/slug.rb, line 9 def initialize(client, app_id, id) @id = id @app_id = app_id @client = client end
Public Instance Methods
info()
click to toggle source
# File lib/escobar/heroku/slug.rb, line 15 def info @info ||= client.heroku.get("/apps/#{app_id}/slugs/#{id}") end
ref()
click to toggle source
# File lib/escobar/heroku/slug.rb, line 19 def ref info["commit"] end