require 'repertoire/media/type' module Repertoire module Media class Git < Type known_as :git uses_schemes 'git' uses_directory '.git' # # Checks out the Git repository located at the specified _uri_ into # the specified _path_. # def self.checkout(uri,path) sh 'git', 'clone', uri, path end # # Updated the Git repository located at the specified _path_. # def self.update(path,uri=nil) switch_dir(path) do sh 'git', 'pull' end end end end end