Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def stop_tomcat
- puts "stopping tomcat"
- end
- def start_tomcat
- puts "starting tomcat"
- end
- def restart
- stop_tomcat
- yield
- start_tomcat
- end
- restart do
- puts "doing stuff while tomcat is shutdown"
- end
Add Comment
Please, Sign In to add comment