Exception: Escobar::Heroku::BuildRequest::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/escobar/heroku/build_request.rb

Overview

Class representing some failure when requesting a build

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#build_requestObject

Returns the value of attribute build_request.



7
8
9
# File 'lib/escobar/heroku/build_request.rb', line 7

def build_request
  @build_request
end

Class Method Details

.new_from_build_request(build_request, message) ⇒ Object



9
10
11
12
13
# File 'lib/escobar/heroku/build_request.rb', line 9

def self.new_from_build_request(build_request, message)
  error = new(message)
  error.build_request = build_request
  error
end

Instance Method Details

#dashboard_urlObject



15
16
17
# File 'lib/escobar/heroku/build_request.rb', line 15

def dashboard_url
  "https://dashboard.heroku.com/apps/#{build_request.app.name}"
end