Module: Gitty::Hook::InstalledHookStrategy

Defined in:
lib/gitty/hook.rb

Instance Method Summary collapse

Instance Method Details

#install(which = :local) ⇒ Object



149
150
151
# File 'lib/gitty/hook.rb', line 149

def install(which = :local)
  # do nothing
end

#share!Object



157
158
159
160
161
# File 'lib/gitty/hook.rb', line 157

def share!
  return nil if install_kind == :shared
  copy_to(:shared)
  destroy
end

#uninstallObject



153
154
155
# File 'lib/gitty/hook.rb', line 153

def uninstall
  destroy
end