Module: SimCtl::Command::OpenUrl

Included in:
SimCtl::Command
Defined in:
lib/simctl/command/openurl.rb

Instance Method Summary collapse

Instance Method Details

#open_url(device, url) ⇒ void

This method returns an undefined value.

Opens a url

Parameters:

  • device (SimCtl::Device)

    the device that should open the url

  • url

    The url to open on the device



11
12
13
# File 'lib/simctl/command/openurl.rb', line 11

def open_url(device, url)
  Executor.execute(command_for('openurl', device.udid, Shellwords.shellescape(url)))
end