Method: Etch::Client#process_setup
- Defined in:
- lib/etch/client.rb
#process_setup(file, config) ⇒ Object
1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 |
# File 'lib/etch/client.rb', line 1991 def process_setup(file, config) if config[:setup] # Because the setup commands are processed every time etch runs # (rather than just when the file has changed, as with pre/post) we # don't want to print a message for them unless we're in debug mode. puts "Processing setup commands" if (@debug) config[:setup].each do |setup| r = process_exec(:setup, setup, file) # process_exec currently raises an exception if a setup or pre command # fails. In case that ever changes make sure we propagate # the error. return r if (!r) end end true end |