Sha256: 486a1ed845dbf7f86d57176a9f48cebef54be68e2fba969841372b54cadfd90c
Contents?: true
Size: 824 Bytes
Versions: 3
Compression:
Stored size: 824 Bytes
Contents
require 'capistrano/novafabrica/helper' configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist) configuration.load do after "deploy:update_code", "tomcat:restart" _cset :tomcat_home, "/opt/tomcat6/" _cset :tomcat_ctrl, "/etc/init.d/tomcat6" namespace :tomcat do desc "start tomcat" task :start do "#{tomcat_ctrl} start" end desc "stop tomcat" task :stop do "#{tomcat_ctrl} stop" end desc "stop and start tomcat" task :restart do tomcat.stop tomcat.start end desc "tail :tomcat_home/logs/*.log and logs/catalina.out" task :tail do stream "tail -f #{tomcat_home}/logs/*.log #{tomcat_home}/logs/catalina.out" end end end
Version data entries
3 entries across 3 versions & 1 rubygems