Method: DeviceAPI::IOS::Device#install

Defined in:
lib/device_api/ios/device.rb

#install(ipa) ⇒ Boolean, Exception

Install a specified IPA

Parameters:

  • ipa (String)

    string containing path to the IPA to install

Returns:

  • (Boolean, Exception)

    true when the IPA installed successfully, otherwise an error is raised



93
94
95
96
97
98
99
100
# File 'lib/device_api/ios/device.rb', line 93

def install(ipa)
  fail StandardError, 'No IPA or app specified.', caller if ipa.empty?

  res = install_ipa(ipa)

  fail StandardError, res, caller unless res
  true
end