Sha256: f7445a9254ccd0c9e36c7ae2e62b8b005bec2c6bf26fac33c3e2f1ee58e5197e

Contents?: true

Size: 388 Bytes

Versions: 17

Compression:

Stored size: 388 Bytes

Contents

require 'shellwords'

module SimCtl
  class Command
    module 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_for('rename', device.udid, Shellwords.shellescape(name)))
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
simctl-1.6.10 lib/simctl/command/rename.rb
simctl-1.6.8 lib/simctl/command/rename.rb
simctl-1.6.7 lib/simctl/command/rename.rb
simctl-1.6.6 lib/simctl/command/rename.rb
simctl-1.6.5 lib/simctl/command/rename.rb
simctl-1.6.4 lib/simctl/command/rename.rb
simctl-1.6.3 lib/simctl/command/rename.rb
simctl-1.6.2 lib/simctl/command/rename.rb
simctl-1.6.1 lib/simctl/command/rename.rb
simctl-1.6.0 lib/simctl/command/rename.rb
simctl-1.5.8 lib/simctl/command/rename.rb
simctl-1.5.7 lib/simctl/command/rename.rb
simctl-1.5.6 lib/simctl/command/rename.rb
simctl-1.5.5 lib/simctl/command/rename.rb
simctl-1.5.4 lib/simctl/command/rename.rb
simctl-1.5.3 lib/simctl/command/rename.rb
simctl-1.5.2 lib/simctl/command/rename.rb