Module: SimCtl::Command::Rename

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

Instance Method Summary collapse

Instance Method Details

#rename_device(device, name) ⇒ void

This method returns an undefined value.

Boots a device

Parameters:

  • device (SimCtl::Device)

    the device to boot

  • name (String)

    the new device name



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

def rename_device(device, name)
  Executor.execute(command_for('rename', device.udid, Shellwords.shellescape(name)))
end