Class: Fastlane::Helper::SyncDevicesHelper::Command::Create

Inherits:
Base
  • Object
show all
Defined in:
lib/fastlane/plugin/sync_devices/helper/sync_devices_helper/command.rb

Overview

Command to register a new device.

Instance Attribute Summary

Attributes inherited from Base

#device

Instance Method Summary collapse

Instance Method Details

#descriptionString

Returns:

  • (String)


167
168
169
# File 'lib/fastlane/plugin/sync_devices/helper/sync_devices_helper/command.rb', line 167

def description
  "Created #{device.name} (#{device.udid})"
end

#runvoid

This method returns an undefined value.



158
159
160
161
162
163
164
# File 'lib/fastlane/plugin/sync_devices/helper/sync_devices_helper/command.rb', line 158

def run
  Spaceship::ConnectAPI::Device.create(
    name: device.name,
    platform: device.platform,
    udid: device.udid
  )
end