Object
# File lib/shipit/vc.rb, line 108 108: def are_local_diffs(ver) 109: `svn diff`.match(/\S/) 110: end
# File lib/shipit/vc.rb, line 65 65: def commit(msg) 66: temp = Tempfile.open("svn-commit") 67: temp << msg 68: temp.close 69: 70: system "svn", "ci", "--file", temp.path 71: end
# File lib/shipit/vc.rb, line 92 92: def exists_tagged_version(ver) 93: !!`svn info '#{tag_url(ver)}'`[/Node Kind: directory/] 94: end
# File lib/shipit/vc.rb, line 104 104: def local_diff(file) 105: `svn diff #{file}` 106: end
# File lib/shipit/vc.rb, line 73 73: def precommit 74: unknown = [] 75: changes = false 76: `svn st`.split(/\n/).each do |l| 77: changes = true 78: next unless l =~ /^\?/ 79: unknown << l 80: end 81: 82: unless unknown.empty? 83: raise unknown.join("\n") 84: end 85: 86: unless changes 87: warn "No locally changed files. skipping commit" 88: return 89: end 90: end
# File lib/shipit/vc.rb, line 113 113: def tag_url(ver) 114: require "uri" 115: ENV["LANG"] = "C" 116: url = `svn info`[/^URL: (.+)/, 1] 117: @url = trunk_url + "." 118: unless `svn info '#{(@url + "tags")}'`[/Node Kind: directory/] 119: raise "tags directory is not found" 120: end 121: @url + "tags/#{ver}" 122: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.