Class: Systemd::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/shared_infrastructure/systemd/systemd.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_pathObject

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