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



22
23
24
25
26
27
28
29
30
# File 'lib/drntest/configuration.rb', line 22

def initialize
  @port            = 24224
  @host            = "localhost"
  @tag             = "droonga"
  @base_path       = Pathname(Dir.pwd)
  @engine_config   = "default"
  @fluentd         = "fluentd"
  @fluentd_options = []
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

#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

#fluentdObject

Returns the value of attribute fluentd.



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

def fluentd
  @fluentd
end

#fluentd_optionsObject

Returns the value of attribute fluentd_options.



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

def fluentd_options
  @fluentd_options
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

Instance Method Details

#engine_config_pathObject



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

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

#suite_pathObject



32
33
34
# File 'lib/drntest/configuration.rb', line 32

def suite_path
  @base_path + "suite"
end