Sha256: a2151e93159c680f9ca668a59d7428c3b8ee615ee64d4e30d6d917d98e871390
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
###################################################################### # APACHE DEFAULTS # ###################################################################### module ChickenSoup def find_web_server_control_script if remote_file_exists?("/usr/sbin/apachectl") set :web_server_control_script, "/usr/sbin/apachectl" elsif remote_file_exists?("/usr/sbin/apache2") set :web_server_control_script, "/usr/sbin/apache2" elsif remote_file_exists?("/usr/sbin/httpd") set :web_server_control_script, "/usr/sbin/httpd" end abort "Couldn't figure out how to control your installation of Apache" unless exists?(:web_server_control_script) end end Capistrano::Configuration.instance(:must_exist).load do extend ChickenSoup namespace :capabilities do namespace :defaults do desc "[internal] Sets intelligent defaults for Apache deployments." task :apache do find_web_server_control_script if web_server_control_script =~ /apache2/ set :apache_enable_script, "a2ensite" set :apache_disable_script, "a2dissite" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chicken_soup-0.6.1 | lib/chicken_soup/capabilities/apache/apache-defaults.rb |
chicken_soup-0.6.0 | lib/chicken_soup/capabilities/apache/apache-defaults.rb |