Method: Overcommit::Installer#run

Defined in:
lib/overcommit/installer.rb

#run(target, options) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/overcommit/installer.rb', line 15

def run(target, options)
  @target = target
  @options = options
  validate_target

  case @options[:action]
  when :uninstall then uninstall
  when :update then update
  else
    install
  end
end