Exception: Aviator::Service::MissingServiceEndpointError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/puppet/feature/aviator/core/service.rb

Instance Method Summary collapse

Constructor Details

#initialize(service_name, request_name) ⇒ MissingServiceEndpointError

Returns a new instance of MissingServiceEndpointError.



49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/puppet/feature/aviator/core/service.rb', line 49

def initialize(service_name, request_name)
  request_name = request_name.to_s.split('::').last.underscore
  super "The session's service catalog does not have an entry for the #{ service_name } "\
        "service. Therefore, I don't know to which base URL the request should be sent. "\
        "This may be because you are using a default or unscoped token. If this is not your "\
        "intention, please authenticate with a scoped token. If using a default token is your "\
        "intention, make sure to provide a base url when you call the request. For :example => \n\n"\
        "session.#{ service_name }_service.request :#{ request_name }, :base_url => 'http://myenv.com:9999/v2.0' do |params|\n"\
        "  params[:example1] = 'example1'\n"\
        "  params[:example2] = 'example2'\n"\
        "end\n\n"
end