Sha256: 875ac75f37ec42007e3b7e67e5e94e9293b16e7f36271947454710b329db12ef

Contents?: true

Size: 567 Bytes

Versions: 2

Compression:

Stored size: 567 Bytes

Contents

require 'simctl/object'

module SimCtl
  class Device < Object
    attr_reader :availability, :name, :os, :state, :udid

    # Boot the device
    def boot!
      SimCtl.boot_device(self)
    end

    # Delete the device
    def delete!
      SimCtl.delete_device(self)
    end

    # Erase the device
    def erase!
      SimCtl.erase_device(self)
    end

    def kill!
      SimCtl.kill_device(self)
    end

    def launch!
      SimCtl.launch_device(self)
    end

    # Shutdown the device
    def shutdown!
      SimCtl.shutdown_device(self)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simctl-1.0.2 lib/simctl/device.rb
simctl-1.0.1 lib/simctl/device.rb