class OhlohScm::Hg::Validation

Private Instance Methods

public_url_regex() click to toggle source
# File lib/ohloh_scm/hg/validation.rb, line 13
def public_url_regex
  %r{^(http|https)://(\w+@)?[\w\-\.]+(:\d+)?/[\w\-\./\~\+]*$}
end
validate_server_connection() click to toggle source
# File lib/ohloh_scm/hg/validation.rb, line 8
def validate_server_connection
  msg = "The server did not respond to the 'hg id' command. Is the URL correct?"
  @errors << [:failed, msg] unless status.exist?
end