lib/gdk/services/nginx.rb (15 lines of code) (raw):
# frozen_string_literal: true
module GDK
module Services
class Nginx < Base
def name
'nginx'
end
def enabled?
config.nginx.enabled?
end
def command
%(#{config.nginx.bin} -e /dev/stderr -p #{config.gdk_root.join('nginx')} -c conf/nginx.conf)
end
end
end
end