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.
-
#catalog_version ⇒ Object
Returns the value of attribute catalog_version.
-
#droonga_engine ⇒ Object
Returns the value of attribute droonga_engine.
-
#droonga_engine_options ⇒ Object
Returns the value of attribute droonga_engine_options.
-
#engine_config ⇒ Object
Returns the value of attribute engine_config.
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
- #engine_config_path ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #suite_path ⇒ Object
Constructor Details
#initialize ⇒ Configuration
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_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 |
#catalog_version ⇒ Object
Returns the value of attribute catalog_version.
21 22 23 |
# File 'lib/drntest/configuration.rb', line 21 def catalog_version @catalog_version end |
#droonga_engine ⇒ Object
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_options ⇒ Object
Returns the value of attribute droonga_engine_options.
20 21 22 |
# File 'lib/drntest/configuration.rb', line 20 def @droonga_engine_options 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 |
#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 |
#timeout ⇒ Object
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_path ⇒ Object
40 41 42 |
# File 'lib/drntest/configuration.rb', line 40 def engine_config_path @base_path + "config" + @engine_config end |
#suite_path ⇒ Object
36 37 38 |
# File 'lib/drntest/configuration.rb', line 36 def suite_path @base_path + "suite" end |