Method: Chap::Runner#hook
- Defined in:
- lib/chap/runner.rb
#hook(name) ⇒ Object
163 164 165 166 167 168 169 170 171 |
# File 'lib/chap/runner.rb', line 163 def hook(name) log "Running hook: #{name}".colorize(:green) path = "#{release_path}/chap/#{name}" if File.exist?(path) Hook.new(path, @config).evaluate else log "chap/#{name} hook does not exist".colorize(:red) end end |