Sha256: 427f67723cbcbcb70c1bdd90bfd71c6116d2a7a947afd6e49919d55dfb686317
Contents?: true
Size: 395 Bytes
Versions: 18
Compression:
Stored size: 395 Bytes
Contents
module Mercurial class Hook attr_reader :repository, :name, :value def initialize(repository, name, value) @repository = repository @name = name @value = value end def save repository.config.add_setting('hooks', name, value) end def destroy! repository.config.delete_setting!('hooks', name) end end end
Version data entries
18 entries across 18 versions & 1 rubygems