Module: Horatio::VCS

Defined in:
lib/horatio/vcs.rb,
lib/horatio/vcs/git.rb,
lib/horatio/vcs/subversion.rb

Defined Under Namespace

Classes: Git, Subversion

Class Method Summary collapse

Class Method Details

.detect(options = {}) ⇒ Object



6
7
8
9
# File 'lib/horatio/vcs.rb', line 6

def self.detect(options={})
   vcs = [Git, Subversion].detect { |d| d.detect }
   vcs ? vcs.new(options) : abort('No VCS detected (git/subversion)')
end