Class: Pushapp::Tasks::NginxExport

Inherits:
Base
  • Object
show all
Defined in:
lib/pushapp/tasks/nginx_export.rb

Instance Attribute Summary

Attributes inherited from Base

#logger, #options

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

#runObject



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 options[:nginx_skip_reload]
    system "#{sudo} /etc/init.d/nginx reload"
  end
end