class Frasco::Simulator
Public Instance Methods
is_running?()
click to toggle source
# File lib/frasco/simulator.rb, line 29 def is_running? !`ps x | grep "[i]Phone Simulator.app"`.empty? end
quit()
click to toggle source
# File lib/frasco/simulator.rb, line 19 def quit `killall 'iPhone Simulator'` while is_running? sleep(0.2) end end
run()
click to toggle source
# File lib/frasco/simulator.rb, line 10 def run raise FrascoError.new("Simulator not installed at '#{path}'") \ unless File.exists?(@@SIMULATOR_PATH) `open "#{@@SIMULATOR_PATH}"` end