Class: ListenerInstaller
Constant Summary
collapse
- GORGON_DIR =
".gorgon"
- DEFAULT_NO_WORKERS =
4
- LISTENER_CONFIG_FILE =
"gorgon_listener.json"
- GORGON_INIT_FILE =
"/etc/init/gorgon.conf"
Class Method Summary
collapse
Instance Method Summary
collapse
#load_configuration_from_file
Class Method Details
.install ⇒ Object
12
13
14
|
# File 'lib/gorgon/listener_installer.rb', line 12
def self.install
ListenerInstaller.new.install
end
|
Instance Method Details
#install ⇒ Object
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/gorgon/listener_installer.rb', line 16
def install
@configuration = load_configuration_from_file("gorgon.json")
FileUtils.mkdir_p gorgon_dir_path
Dir.chdir gorgon_dir_path
create_listener_config_file
create_gorgon_service
start_gorgon_daemon
end
|