Sha256: 1842fe375701f2bb4e6a91857864f1d1d2d3ff1e33fcfb29c89450dd9eb8ee74

Contents?: true

Size: 775 Bytes

Versions: 7

Compression:

Stored size: 775 Bytes

Contents

######################################################################
#                           NGINX DEFAULTS                           #
######################################################################
Capistrano::Configuration.instance(:must_exist).load do
  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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
chicken_soup-0.5.3 lib/chicken_soup/capabilities/nginx/nginx-defaults.rb
chicken_soup-0.5.2 lib/chicken_soup/capabilities/nginx/nginx-defaults.rb
chicken_soup-0.5.0 lib/chicken_soup/capabilities/nginx/nginx-defaults.rb
chicken_soup-0.4.1 lib/chicken_soup/capabilities/nginx/nginx-defaults.rb
chicken_soup-0.4.0 lib/chicken_soup/capabilities/nginx/nginx-defaults.rb
chicken_soup-0.3.0 lib/chicken_soup/capabilities/nginx/nginx-defaults.rb
chicken_soup-0.2.0 lib/chicken_soup/capabilities/nginx/nginx-defaults.rb