require 'reap/manager/svn' module Reap class Manager # Generate ChangeLog. This method routes to the # appropriate method for the project's source # control manager. # # def scm_log(options={}) create_txtlog = (options['txtlog'] != false) create_xmllog = (options['xmllog'] != false) xmlout = options['xmloutput'] || 'doc/log' # TODO: How to set doc/? if create_txtlog txtlog = apply_naming_policy('changelog', 'txt') txtlog = File.join('log', txtlog) end if create_xmllog xmllog = apply_naming_policy('changelog', 'xml') xmllog = File.join(xmlout, xmllog) end #txtlog = File.join('lib', txtlog) unless txtlog.include?('/') #xmllog = File.join(xmldir, xmllog) unless xmllog.include?('/') if File.directory?('.svn') svn_log('txtlog' => txtlog, 'xmllog' => xmllog) else abort "Only Subversion is currently supported." end end # Tag current versoin of project. This method routes # to the appropriate method for the project's source # control manager. def scm_tag(*args) if File.directory?('.svn') svn_tag(*args) else abort "Only Subversion is currently supported." end end # Branch current version of project. This method routes # to the appropriate method for the project's source # control manager. def scm_branch(*args) if File.directory?('.svn') svn_branch(*args) else abort "Only Subversion is currently supported." end end end end