Class: RegressyCommon::DriverCreator

Inherits:
Object
  • Object
show all
Defined in:
lib/regressy_common/driver_creator.rb

Instance Method Summary collapse

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_driverObject



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