Class: Praegustator::TestSuite
- Inherits:
-
Object
- Object
- Praegustator::TestSuite
- Defined in:
- lib/praegustator/test_suite.rb
Instance Attribute Summary collapse
-
#checks ⇒ Object
Returns the value of attribute checks.
-
#nodes ⇒ Object
Returns the value of attribute nodes.
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
- #check(name) ⇒ Object
- #execute ⇒ Object
-
#initialize(query) ⇒ TestSuite
constructor
A new instance of TestSuite.
- #properties(params) ⇒ Object
Constructor Details
#initialize(query) ⇒ TestSuite
Returns a new instance of TestSuite.
6 7 8 9 10 11 |
# File 'lib/praegustator/test_suite.rb', line 6 def initialize(query) @query = query @checks = {} @params = {} @nodes = Praegustator::Wrappers::Chef.search query end |
Instance Attribute Details
#checks ⇒ Object
Returns the value of attribute checks.
4 5 6 |
# File 'lib/praegustator/test_suite.rb', line 4 def checks @checks end |
#nodes ⇒ Object
Returns the value of attribute nodes.
4 5 6 |
# File 'lib/praegustator/test_suite.rb', line 4 def nodes @nodes end |
#params ⇒ Object
Returns the value of attribute params.
4 5 6 |
# File 'lib/praegustator/test_suite.rb', line 4 def params @params end |
Instance Method Details
#check(name) ⇒ Object
13 14 15 |
# File 'lib/praegustator/test_suite.rb', line 13 def check(name) @checks[name] = {} end |
#execute ⇒ Object
21 22 23 24 25 |
# File 'lib/praegustator/test_suite.rb', line 21 def execute # lazy load require 'praegustator/wrappers/server_spec' Praegustator::Wrappers::ServerSpec.new.execute self end |
#properties(params) ⇒ Object
17 18 19 |
# File 'lib/praegustator/test_suite.rb', line 17 def properties(params) @params = params end |