Class: RestyTest::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/resty_test/config.rb

Instance Attribute Summary collapse

Instance Attribute Details

#build_optsObject



21
22
23
# File 'lib/resty_test/config.rb', line 21

def build_opts
  @build_opts ||= ["--with-luajit", *platform_specific_build_options]
end

#config_fileObject



17
18
19
# File 'lib/resty_test/config.rb', line 17

def config_file
  @config_file ||= File.expand_path("../nginx.conf", RestyTest.paths.root)
end

#loggerObject



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

#rootObject

Returns the value of attribute root.



5
6
7
# File 'lib/resty_test/config.rb', line 5

def root
  @root
end

#sourceObject



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