Sha256: 33ff51b7f9c5bc430659f6ab5bca95b4a852d5dd81f4ef5f2d326406010d6779
Contents?: true
Size: 661 Bytes
Versions: 2
Compression:
Stored size: 661 Bytes
Contents
require 'pushapp/tasks/base' module Pushapp module Tasks class NginxExport < Nginx def run system "#{sudo} cp #{nginx_conf} #{nginx_sites}" unless options[:nginx_skip_reload] system "#{sudo} /etc/init.d/nginx reload" end end register_as :nginx_export private def nginx_conf options[:nginx_conf] || find_nginx_conf end def nginx_sites options[:nginx_sites] || '/etc/nginx/sites-enabled' end def find_nginx_conf file = "config/deploys/#{app_name_from_path}.nginx.conf" return file if File.exists?(file) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pushapp-0.0.3 | lib/pushapp/tasks/nginx_export.rb |
pushapp-0.0.2 | lib/pushapp/tasks/nginx_export.rb |