Class: Drntest::Configuration
- Inherits:
-
Object
- Object
- Drntest::Configuration
- Defined in:
- lib/drntest/configuration.rb
Instance Attribute Summary collapse
-
#base_path ⇒ Object
Returns the value of attribute base_path.
-
#engine_config ⇒ Object
Returns the value of attribute engine_config.
-
#fluentd ⇒ Object
Returns the value of attribute fluentd.
-
#fluentd_options ⇒ Object
Returns the value of attribute fluentd_options.
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
- #engine_config_path ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #suite_path ⇒ Object
Constructor Details
#initialize ⇒ Configuration
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" = [] end |
Instance Attribute Details
#base_path ⇒ Object
Returns the value of attribute base_path.
19 20 21 |
# File 'lib/drntest/configuration.rb', line 19 def base_path @base_path end |
#engine_config ⇒ Object
Returns the value of attribute engine_config.
19 20 21 |
# File 'lib/drntest/configuration.rb', line 19 def engine_config @engine_config end |
#fluentd ⇒ Object
Returns the value of attribute fluentd.
20 21 22 |
# File 'lib/drntest/configuration.rb', line 20 def fluentd @fluentd end |
#fluentd_options ⇒ Object
Returns the value of attribute fluentd_options.
20 21 22 |
# File 'lib/drntest/configuration.rb', line 20 def end |
#host ⇒ Object
Returns the value of attribute host.
18 19 20 |
# File 'lib/drntest/configuration.rb', line 18 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
18 19 20 |
# File 'lib/drntest/configuration.rb', line 18 def port @port end |
#tag ⇒ Object
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_path ⇒ Object
36 37 38 |
# File 'lib/drntest/configuration.rb', line 36 def engine_config_path @base_path + "config" + @engine_config end |
#suite_path ⇒ Object
32 33 34 |
# File 'lib/drntest/configuration.rb', line 32 def suite_path @base_path + "suite" end |