module Gitan

Public Class Methods

remote_heads(server, path) click to toggle source

Return heads in remote host.

# File lib/gitan.rb, line 11
def self.remote_heads(server, path)
  results = {}
  YAML.load(`ssh #{server} gitan heads #{path}`).each do |repo_path, head|
    repo_name = File.basename(repo_path).sub(/\.git$/, "")
    results[repo_name] = head
  end
  return results
end