Sha256: ff49b3e0d2c7ed2be1d169ca16fd8d22af51c31d7759700a9100e2e9639fd471
Contents?: true
Size: 569 Bytes
Versions: 4
Compression:
Stored size: 569 Bytes
Contents
require 'repertoire/media/type' module Repertoire module Media class Hg < Type known_as :hg uses_directory '.hg' # # Checks out the Mercurial repository located at the specified _uri_ # into the specified _path_. # def self.checkout(uri,path) sh 'hg', 'clone', uri, path end # # Updated the Mercurial repository located at the specified _path_. # def self.update(path,uri=nil) switch_dir(path) do sh 'hg', 'pull', '-u' end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems