Class: KrakenMobile::App
- Inherits:
-
Object
- Object
- KrakenMobile::App
- Defined in:
- lib/kraken-mobile.rb
Instance Method Summary collapse
- #current_runner ⇒ Object
-
#initialize(options) ⇒ App
constructor
Constructors.
-
#run_in_parallel ⇒ Object
Helpers.
Constructor Details
#initialize(options) ⇒ App
Constructors
8 9 10 11 |
# File 'lib/kraken-mobile.rb', line 8 def initialize() @options = @runner = current_runner end |
Instance Method Details
#current_runner ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/kraken-mobile.rb', line 18 def current_runner case @options[:runner] when KrakenMobile::Constants::CALABASH_ANDROID Runner::CalabashAndroidRunner.new(@options) when KrakenMobile::Constants::MONKEY Runner::MonkeyRunner.new(@options) else raise "Invalid Kraken runner." end end |
#run_in_parallel ⇒ Object
Helpers
14 15 16 |
# File 'lib/kraken-mobile.rb', line 14 def run_in_parallel @runner.run_in_parallel end |