Sha256: 85fdbca9fc25d22cbf489505ab85fbab095b96726c749a36e0a130d8553409f0

Contents?: true

Size: 524 Bytes

Versions: 1

Compression:

Stored size: 524 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  namespace :tomcat do 
    desc "Start tomcat"
    task :start, :roles => [:app, :tomcat], :only => {:tomcat => true} do
      sudo "/etc/init.d/tomcat start"
    end
    desc "Stop tomcat"
    task :stop, :roles => [:app, :tomcat], :only => {:tomcat => true} do
      sudo "/etc/init.d/tomcat stop"
    end
    desc "Restart tomcat"
    task :restart, :roles => [:app, :tomcat], :only => {:tomcat => true} do
      sudo "/etc/init.d/tomcat restart"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
engineyard-eycap-0.3.8 lib/eycap/recipes/tomcat.rb