Class: RestyTest::Config
- Inherits:
-
Object
- Object
- RestyTest::Config
- Includes:
- Singleton
- Defined in:
- lib/resty_test/config.rb
Instance Attribute Summary collapse
- #build_opts ⇒ Object
- #config_file ⇒ Object
- #logger ⇒ Object
-
#root ⇒ Object
Returns the value of attribute root.
- #source ⇒ Object
Instance Attribute Details
#build_opts ⇒ Object
21 22 23 |
# File 'lib/resty_test/config.rb', line 21 def build_opts @build_opts ||= ["--with-luajit", *] end |
#config_file ⇒ Object
17 18 19 |
# File 'lib/resty_test/config.rb', line 17 def config_file @config_file ||= File.("../nginx.conf", RestyTest.paths.root) end |
#logger ⇒ Object
11 12 13 14 15 |
# File 'lib/resty_test/config.rb', line 11 def logger @logger ||= Logger.new(STDOUT).tap do |l| l.level = Logger::INFO end end |
#root ⇒ Object
Returns the value of attribute root.
5 6 7 |
# File 'lib/resty_test/config.rb', line 5 def root @root end |
#source ⇒ Object
7 8 9 |
# File 'lib/resty_test/config.rb', line 7 def source @source ||= "http://openresty.org/download/ngx_openresty-1.2.8.6.tar.gz" end |