Class: Appboost::HostSiteGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Appboost::HostSiteGenerator
- Defined in:
- lib/generators/appboost/host_site_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_nginx_config ⇒ Object
18 19 20 |
# File 'lib/generators/appboost/host_site_generator.rb', line 18 def copy_nginx_config copy_file "#{Dir.pwd}/config/nginx/#{app_name}.conf", "#{[:nginx_sites]}/#{app_name}.conf" end |
#reload_nginx ⇒ Object
22 23 24 |
# File 'lib/generators/appboost/host_site_generator.rb', line 22 def reload_nginx system "/etc/init.d/nginx reload" if [:reload_nginx] end |