Class: KrakenMobile::App

Inherits:
Object
  • Object
show all
Defined in:
lib/kraken-mobile.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ App

Constructors



8
9
10
11
# File 'lib/kraken-mobile.rb', line 8

def initialize(options)
	@options = options
	@runner = current_runner
end

Instance Method Details

#current_runnerObject



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_parallelObject

Helpers



14
15
16
# File 'lib/kraken-mobile.rb', line 14

def run_in_parallel
    @runner.run_in_parallel
end