Method: NginxStage::Application.commands

Defined in:
lib/nginx_stage/application.rb

.commandsHash

Available commands for the CLI

Returns:

  • (Hash)

    hash of commands and their attributes



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/nginx_stage/application.rb', line 15

def self.commands
  {
    'pun'         => NginxStage::PunConfigGenerator,
    'app'         => NginxStage::AppConfigGenerator,
    'app_reset'   => NginxStage::AppResetGenerator,
    'app_list'    => NginxStage::AppListGenerator,
    'app_clean'   => NginxStage::AppCleanGenerator,
    'nginx'       => NginxStage::NginxProcessGenerator,
    'nginx_show'  => NginxStage::NginxShowGenerator,
    'nginx_list'  => NginxStage::NginxListGenerator,
    'nginx_clean' => NginxStage::NginxCleanGenerator,
  }
end