Class: Drntest::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/drntest/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/drntest/configuration.rb', line 24

def initialize
  @port            = 24224
  @host            = "localhost"
  @tag             = "droonga"
  @base_path       = Pathname(Dir.pwd)
  @engine_config   = "default"
  @droonga_engine  = "droonga-engine"
  @droonga_engine_options = []
  @catalog_version = "2"
  @timeout         = 1
end

Instance Attribute Details

#base_pathObject

Returns the value of attribute base_path.



19
20
21
# File 'lib/drntest/configuration.rb', line 19

def base_path
  @base_path
end

#catalog_versionObject

Returns the value of attribute catalog_version.



21
22
23
# File 'lib/drntest/configuration.rb', line 21

def catalog_version
  @catalog_version
end

#droonga_engineObject

Returns the value of attribute droonga_engine.



20
21
22
# File 'lib/drntest/configuration.rb', line 20

def droonga_engine
  @droonga_engine
end

#droonga_engine_optionsObject

Returns the value of attribute droonga_engine_options.



20
21
22
# File 'lib/drntest/configuration.rb', line 20

def droonga_engine_options
  @droonga_engine_options
end

#engine_configObject

Returns the value of attribute engine_config.



19
20
21
# File 'lib/drntest/configuration.rb', line 19

def engine_config
  @engine_config
end

#hostObject

Returns the value of attribute host.



18
19
20
# File 'lib/drntest/configuration.rb', line 18

def host
  @host
end

#portObject

Returns the value of attribute port.



18
19
20
# File 'lib/drntest/configuration.rb', line 18

def port
  @port
end

#tagObject

Returns the value of attribute tag.



18
19
20
# File 'lib/drntest/configuration.rb', line 18

def tag
  @tag
end

#timeoutObject

Returns the value of attribute timeout.



22
23
24
# File 'lib/drntest/configuration.rb', line 22

def timeout
  @timeout
end

Instance Method Details

#engine_config_pathObject



40
41
42
# File 'lib/drntest/configuration.rb', line 40

def engine_config_path
  @base_path + "config" + @engine_config
end

#suite_pathObject



36
37
38
# File 'lib/drntest/configuration.rb', line 36

def suite_path
  @base_path + "suite"
end