Sha256: 3685ca4a4f363d48365e4770a23cc51ebf30818a2a85aaf66411e6852126fd87

Contents?: true

Size: 573 Bytes

Versions: 9

Compression:

Stored size: 573 Bytes

Contents

configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist)

configuration.load do  
  namespace :deploy do
    desc "Restart the web server"
    task :restart, :roles => :app do
      run "lighty restart >/dev/null 2>&1"
    end
    
    desc "Stop the web server"
    task :stop, :roles => :app do
      run "lighty stop >/dev/null 2>&1"
    end
    
    desc "Start the web server"
    task :start, :roles => :app do
      run "lighty start >/dev/null 2>&1"
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gorilla-capistrano-recipes-0.2.2 lib/gorilla-capistrano-recipes/lighttpd.rb
gorilla-capistrano-recipes-0.2.1 lib/gorilla-capistrano-recipes/lighttpd.rb
gorilla-capistrano-recipes-0.2.0 lib/gorilla-capistrano-recipes/lighttpd.rb
gorilla-capistrano-recipes-0.1.5 lib/gorilla-capistrano-recipes/lighttpd.rb
gorilla-capistrano-recipes-0.1.4 lib/gorilla-capistrano-recipes/lighttpd.rb
gorilla-capistrano-recipes-0.1.3 lib/gorilla-capistrano-recipes/lighttpd.rb
gorilla-capistrano-recipes-0.1.2 lib/gorilla-capistrano-recipes/lighttpd.rb
gorilla-capistrano-recipes-0.1.1 lib/gorilla-capistrano-recipes/lighttpd.rb
gorilla-capistrano-recipes-0.1.0 lib/gorilla-capistrano-recipes/lighttpd.rb