class Razor::CLI::InvalidURIError
Public Class Methods
new(url, type)
click to toggle source
Calls superclass method
# File lib/razor/cli.rb, line 17 def initialize(url, type) case type when :env super _("URL '%{url}' in ENV variable RAZOR_API is not valid") % {url: url} when :opts super _("URL '%{url}' provided by -u or --url is not valid") % {url: url} else super _("URL '%{url}' is not valid") % {url: url} end end