Sha256: 76742a0de88131a0ecef226539eedd92c1d991019cbc28a3d04de56dd5660d5a

Contents?: true

Size: 417 Bytes

Versions: 10

Compression:

Stored size: 417 Bytes

Contents

require 'shellwords'

module SimCtl
  class Command
    module Rename
      COMMAND = %w[xcrun simctl rename]

      # Boots a device
      #
      # @param device [SimCtl::Device] the device to boot
      # @param name [String] the new device name
      # @return [void]
      def rename_device(device, name)
        Executor.execute([COMMAND, device.udid, Shellwords.shellescape(name)])
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
simctl-1.5.1 lib/simctl/command/rename.rb
simctl-1.5.0 lib/simctl/command/rename.rb
simctl-1.4.1 lib/simctl/command/rename.rb
simctl-1.4.0 lib/simctl/command/rename.rb
simctl-1.3.1 lib/simctl/command/rename.rb
simctl-1.3.0 lib/simctl/command/rename.rb
simctl-1.2.3 lib/simctl/command/rename.rb
simctl-1.2.2 lib/simctl/command/rename.rb
simctl-1.2.1 lib/simctl/command/rename.rb
simctl-1.2.0 lib/simctl/command/rename.rb