module RestyTest
Attributes
running[R]
Public Class Methods
config()
click to toggle source
# File lib/resty_test.rb, line 18 def config self::Config.instance end
configure() { |config| ... }
click to toggle source
# File lib/resty_test.rb, line 14 def configure yield config end
installer()
click to toggle source
# File lib/resty_test.rb, line 22 def installer self::Installer.instance end
logger()
click to toggle source
# File lib/resty_test.rb, line 30 def logger config.logger end
paths()
click to toggle source
# File lib/resty_test.rb, line 26 def paths RestyTest::Paths.instance end
reload!()
click to toggle source
# File lib/resty_test.rb, line 46 def reload! return unless File.file?(paths.nginx_bin) && running system "#{paths.nginx_bin} -s reload" end
start!()
click to toggle source
# File lib/resty_test.rb, line 34 def start! installer.install! system "#{paths.nginx_bin} -c #{config.config_file}" @running = true end
stop!()
click to toggle source
# File lib/resty_test.rb, line 40 def stop! return unless File.file?(paths.nginx_bin) && running system "#{paths.nginx_bin} -s stop" @running = nil end