Class: NginxStage::AppResetGenerator

Inherits:
Generator
  • Object
show all
Includes:
AppConfigView
Defined in:
lib/nginx_stage/generators/app_reset_generator.rb

Overview

This generator resets all app configs with the most current app config template.

Instance Attribute Summary collapse

Method Summary

Methods included from AppConfigView

#app_passenger_env, #app_request_uri, #app_root, #app_token, #sendfile_root, #sendfile_uri

Methods inherited from Generator

_options, add_hook, add_option, #create_file, desc, #empty_directory, footer, hooks, #initialize, #invoke, options, rem_hook, rem_option, #template

Methods included from GeneratorHelpers

#add_skip_nginx_support, #add_sub_uri_support, #add_user_support

Constructor Details

This class inherits a constructor from NginxStage::Generator

Instance Attribute Details

#envSymbol

The environment the app is run under (parsed from sub_request)



21
22
23
# File 'lib/nginx_stage/generators/app_reset_generator.rb', line 21

def env
  @env
end

#nameString

The name of the app



29
30
31
# File 'lib/nginx_stage/generators/app_reset_generator.rb', line 29

def name
  @name
end

#ownerString

The owner of the app (parsed from sub_request or assume it is user)



25
26
27
# File 'lib/nginx_stage/generators/app_reset_generator.rb', line 25

def owner
  @owner
end