Module: Larrow::Runner::Vcs
- Defined in:
- lib/larrow/runner/vcs.rb,
lib/larrow/runner/vcs/base.rb,
lib/larrow/runner/vcs/github.rb,
lib/larrow/runner/vcs/file_system.rb
Overview
Access source code from Version Control System eg: Subversion, Github, LocalStore
Defined Under Namespace
Classes: Base, FileSystem, Github
Class Method Summary collapse
Class Method Details
.detect(url) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/larrow/runner/vcs.rb', line 9 def self.detect url case url when /github\.com.+\.git$/ Github.new(url) else # local file/folder fail "cannot recognized: #{url}" unless File.exist? url FileSystem.new url end end |