Module: SimCtl::Command::Rename

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

Constant Summary collapse

COMMAND =
%w[xcrun simctl rename]

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



13
14
15
# File 'lib/simctl/command/rename.rb', line 13

def rename_device(device, name)
  Executor.execute([COMMAND, device.udid, Shellwords.shellescape(name)])
end