Module: Sneaql::RepoManagers
- Defined in:
- lib/sneaql_lib/repo_manager.rb
Overview
Classes to manage repositories full of SneaQL code.
Defined Under Namespace
Classes: GitRepoManager, HttpStoreRepoManager, LocalFileSystemRepoManager
Class Method Summary collapse
-
.repo_type_from_url(repo_url) ⇒ Object
tells you the repo type based upon the url either git or http.
Class Method Details
.repo_type_from_url(repo_url) ⇒ Object
tells you the repo type based upon the url either git or http
13 14 15 16 |
# File 'lib/sneaql_lib/repo_manager.rb', line 13 def self.repo_type_from_url(repo_url) return 'git' if repo_url.match(/\.*git.*/i) return 'http' if repo_url.match(/\.*http.*/i) end |