require 'rubygems' require 'provisional/repo_man' require 'provisional/scm/svn' require 'etc' module Provisional module SCM class RepoManSvn < Provisional::SCM::Svn def initialize(options) raise ArgumentError, "domain must be specified" unless options['domain'] super end def init begin RepoMan::Repository.site = "http://repoman.#{@options['domain']}/" RepoMan::Repository.create(:name => @options['name'], :scm => 'svn') @options['url'] = "svn://svn.#{@options['domain']}/#{@options['name']}" @options['username'] ||= Etc.getlogin @options['password'] ||= "''" rescue raise RuntimeError, "Repository not created on Repo Man due to exception: #{$!}" end end def generate_rails super(false) end end end end