module RorVsWild::Deployment

def self.read_from_capistrano

def self.read_from_capistrano
  return unless File.readable?("REVISION")
  return unless @revision = File.read("REVISION")
  return unless stdout = shell("git --git-dir ../../repo log --format=%an%n%ae%n%B -n 1 #{@revision}")
  lines = stdout.lines
  @author = normalize_string(lines[0])
  @email = normalize_string(lines[1])
  @description = lines[2..-1] && normalize_string(lines[2..-1].join)
  @revision
end