Skip to content

Commit

Permalink
Autoload SCMs
Browse files Browse the repository at this point in the history
BTW, I wonder wheter we could get rid of SCM.new and class_for
by requiring buildable to return a class. WDYT?
  • Loading branch information
sr committed Apr 17, 2009
1 parent a511d7c commit 8b74a88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/bob.rb
Expand Up @@ -6,8 +6,6 @@

require "bob/builder"
require "bob/scm"
require "bob/scm/git"
require "bob/scm/svn"
require "bob/background_engines"

module Bob
Expand Down
3 changes: 3 additions & 0 deletions lib/bob/scm.rb
Expand Up @@ -2,6 +2,9 @@

module Bob
module SCM
autoload :Git, "bob/scm/git"
autoload :Svn, "bob/scm/svn"

class CantRunCommand < RuntimeError; end

# Factory to return appropriate SCM instances (according to repository kind)
Expand Down

0 comments on commit 8b74a88

Please sign in to comment.