Sha256: 93b09320ac4554b1532b2d839b6dea34db8523a6f0f3be65276957204fca6fe6
Contents?: true
Size: 1.58 KB
Versions: 5
Compression:
Stored size: 1.58 KB
Contents
require 'reap/project/svn' module Reap class Project # 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'] || 'site/log' # TODO: How to set site/? 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
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
reap-9.3.0 | lib/reap/project/scm.rb |
reap-9.3.1 | lib/reap/project/scm.rb |
reap-9.3.3 | lib/reap/project/scm.rb |
reap-9.3.4 | lib/reap/project/scm.rb |
reap-9.3.5 | lib/reap/project/scm.rb |