Sha256: 2b40da33bbaf1dbe94b8eb5477fbcc396aca6c7184eddd81393d40ae8cc97f08
Contents?: true
Size: 832 Bytes
Versions: 2
Compression:
Stored size: 832 Bytes
Contents
###################################################################### # NGINX DEFAULTS # ###################################################################### module ChickenSoup def find_web_server_control_script if remote_file_exists?("/etc/init.d/nginx") set :web_server_control_script, "/etc/init.d/nginx" end abort "Couldn't figure out how to control your installation of Nginx" 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] Checks to see what type of Nginx installation is running on the remote." task :nginx do find_web_server_control_script 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/nginx/nginx-defaults.rb |
chicken_soup-0.6.0 | lib/chicken_soup/capabilities/nginx/nginx-defaults.rb |