class Berkshelf::InvalidSourceURI

Public Class Methods

new(url, reason = nil) click to toggle source
# File lib/berkshelf/errors.rb, line 426
def initialize(url, reason = nil)
  @url    = url
  @reason = reason
end

Public Instance Methods

message()
Alias for: to_s
to_s() click to toggle source
# File lib/berkshelf/errors.rb, line 431
def to_s
  msg =  "'#{@url}' is not a valid Berkshelf source URI."
  msg << " #{@reason}." unless @reason.nil?
  msg
end
Also aliased as: message