Class: Pushapp::Tasks::NginxExport
- Defined in:
- lib/pushapp/tasks/nginx_export.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#app_name_from_path, #env, #env_options, #initialize, #inspect, register_as, #sudo, #system
Constructor Details
This class inherits a constructor from Pushapp::Tasks::Base
Instance Method Details
#run ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/pushapp/tasks/nginx_export.rb', line 6 def run system "#{sudo} cp #{nginx_conf} #{nginx_sites}" unless [:nginx_skip_reload] system "#{sudo} /etc/init.d/nginx reload" end end |