Method: Websitary::App#process
- Defined in:
- lib/websitary.rb
#process ⇒ Object
Run the command stored in @execute.
83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/websitary.rb', line 83 def process begin m = "execute_#{@configuration.execute}" if respond_to?(m) exit_code = send(m) else $logger.fatal "Unknown command: #{@configuration.execute}" exit_code = 5 end ensure @configuration.mtimes.swap_out end return exit_code end |