lib/simctl/device.rb in simctl-1.4.1 vs lib/simctl/device.rb in simctl-1.5.0
- old
+ new
@@ -43,10 +43,18 @@
# @return [void]
def erase!
SimCtl.erase_device(self)
end
+ # Installs an app on a device
+ #
+ # @param path Absolute path to the app that should be installed
+ # @return [void]
+ def install!(path)
+ SimCtl.install_app(self, path)
+ end
+
# Kills the device
#
# @return [void]
def kill!
SimCtl.kill_device(self)
@@ -55,9 +63,19 @@
# Launches the Simulator
#
# @return [void]
def launch!(scale=1.0, opts={})
SimCtl.launch_device(self, scale, opts)
+ end
+
+ # Launches an app in the given device
+ #
+ # @param opts [Hash] options hash - `{ wait_for_debugger: true/false }`
+ # @param identifier [String] the app identifier
+ # @param args [Array] optional launch arguments
+ # @return [void]
+ def launch_app!(identifier, args=[], opts={})
+ SimCtl.launch_app(self, identifier, args, opts)
end
def path
@path ||= DevicePath.new(udid)
end