Module: SimCtl::Command::Upgrade

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

Instance Method Summary collapse

Instance Method Details

#upgrade(device, runtime) ⇒ void

This method returns an undefined value.

Upgrade a device to a newer runtime

Parameters:

  • device (SimCtl::Device)

    the device the upgrade should be performed for

  • runtime (SimCtl::Runtime)

    the runtime the device should be upgrade to



9
10
11
# File 'lib/simctl/command/upgrade.rb', line 9

def upgrade(device, runtime)
  Executor.execute(command_for('upgrade', device.udid, runtime.identifier))
end