class Bixby::Provision::SCM

Constants

EXPORTS

Public Instance Methods

checkout(uri, opts={}) click to toggle source
# File lib/bixby/provision/dsl/scm.rb, line 13
def checkout(uri, opts={})
  handler(uri).checkout(uri, opts)
end

Private Instance Methods

handler(uri) click to toggle source
# File lib/bixby/provision/dsl/scm.rb, line 20
def handler(uri)
  @handler ||= if uri =~ %r{\.git$} then
      SCM::Git.new(self)
    else
      # TODO add check
      SCM::SVN.new(self)
    end
end