Class: RegressyCommon::DriverCreator
- Inherits:
-
Object
- Object
- RegressyCommon::DriverCreator
- Defined in:
- lib/regressy_common/driver_creator.rb
Instance Method Summary collapse
- #create_driver ⇒ Object
-
#initialize(capability) ⇒ DriverCreator
constructor
A new instance of DriverCreator.
Constructor Details
#initialize(capability) ⇒ DriverCreator
Returns a new instance of DriverCreator.
5 6 7 |
# File 'lib/regressy_common/driver_creator.rb', line 5 def initialize(capability) @capability = capability end |
Instance Method Details
#create_driver ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/regressy_common/driver_creator.rb', line 9 def create_driver if @capability && !@capability.is_local? create_driver_remote else create_driver_local end end |