Class: Gorgon::ListenerInstaller
- Inherits:
-
Object
- Object
- Gorgon::ListenerInstaller
show all
- Includes:
- Configuration
- Defined in:
- lib/gorgon/listener_installer.rb
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
13
14
15
|
# File 'lib/gorgon/listener_installer.rb', line 13
def self.install
ListenerInstaller.new.install
end
|
Instance Method Details
#install ⇒ Object
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/gorgon/listener_installer.rb', line 17
def install
@configuration = load_configuration_from_file("gorgon.json", merge: "gorgon_secret.json")
FileUtils.mkdir_p gorgon_dir_path
Dir.chdir gorgon_dir_path
create_listener_config_file
create_gorgon_service
start_gorgon_daemon
end
|