class Buildr::SvnRelease

Public Class Methods

applies_to?() click to toggle source
# File lib/buildr/core/build.rb, line 570
def applies_to?
  File.exist?('.svn')
end

Public Instance Methods

check() click to toggle source
Calls superclass method
# File lib/buildr/core/build.rb, line 575
def check
  super
  fail "Uncommitted files violate the First Principle Of Release!\n"+Svn.uncommitted_files.join("\n") unless Svn.uncommitted_files.empty?
  fail "SVN URL must contain 'trunk' or 'branches/...'" unless Svn.repo_url =~ /(trunk)|(branches.*)$/
end
tag_release(tag) click to toggle source
# File lib/buildr/core/build.rb, line 581
def tag_release(tag)
  # Unlike Git, committing the buildfile with the released version is not necessary.
  # svn tag does commit & tag.
  info "Tagging release #{tag}"
  Svn.tag tag
end
update_version_to_next() click to toggle source
Calls superclass method
# File lib/buildr/core/build.rb, line 588
def update_version_to_next
  super
  info "Current version is now #{extract_version}"
  Svn.commit Buildr.application.buildfile.to_s, message
end