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