Class: Systemd::Configuration
- Inherits:
-
Object
- Object
- Systemd::Configuration
- Defined in:
- lib/shared_infrastructure/systemd/systemd.rb
Instance Attribute Summary collapse
-
#unit_file_path ⇒ Object
Returns the value of attribute unit_file_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #unit_file(domain_name) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
3 4 5 |
# File 'lib/shared_infrastructure/systemd/systemd.rb', line 3 def initialize @unit_file_path = "#{Nginx.root}/lib/systemd/system" end |
Instance Attribute Details
#unit_file_path ⇒ Object
Returns the value of attribute unit_file_path.
11 12 13 |
# File 'lib/shared_infrastructure/systemd/systemd.rb', line 11 def unit_file_path @unit_file_path end |
Instance Method Details
#unit_file(domain_name) ⇒ Object
7 8 9 |
# File 'lib/shared_infrastructure/systemd/systemd.rb', line 7 def unit_file(domain_name) File.join(unit_file_path, domain_name + ".service") end |