class OhlohScm::Bzr::Validation

Private Instance Methods

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