Method: Forger::Hook#run

Defined in:
lib/forger/hook.rb

#run(name) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/forger/hook.rb', line 9

def run(name)
  return if @options[:noop]
  return unless hooks[name]
  command = hooks[name]
  puts "Running hook #{name}: #{command}"
  sh(command)
end