Exception: Fastlane::Helper::SyncDevicesHelper::UnsupportedOperation
- Inherits:
-
StandardError
- Object
- StandardError
- Fastlane::Helper::SyncDevicesHelper::UnsupportedOperation
- Defined in:
- lib/fastlane/plugin/sync_devices/helper/sync_devices_helper/device_patch.rb
Overview
Generic error that is raised if no operation is defined in AppStore Connect API for diff of devices.
Instance Attribute Summary collapse
- #new_device ⇒ Spaceship::ConnectAPI::Device readonly
- #old_device ⇒ Spaceship::ConnectAPI::Device readonly
Class Method Summary collapse
- .change_platform(old_device, new_device) ⇒ UnsupportedOperation
- .internal_inconsistency(patch, old_device, new_device) ⇒ UnsupportedOperation
Instance Method Summary collapse
-
#initialize(message, old_device, new_device) ⇒ UnsupportedOperation
constructor
A new instance of UnsupportedOperation.
Constructor Details
#initialize(message, old_device, new_device) ⇒ UnsupportedOperation
81 82 83 84 85 |
# File 'lib/fastlane/plugin/sync_devices/helper/sync_devices_helper/device_patch.rb', line 81 def initialize(, old_device, new_device) super() @old_device = old_device @new_device = new_device end |
Instance Attribute Details
#new_device ⇒ Spaceship::ConnectAPI::Device (readonly)
76 77 78 |
# File 'lib/fastlane/plugin/sync_devices/helper/sync_devices_helper/device_patch.rb', line 76 def new_device @new_device end |
#old_device ⇒ Spaceship::ConnectAPI::Device (readonly)
76 77 78 |
# File 'lib/fastlane/plugin/sync_devices/helper/sync_devices_helper/device_patch.rb', line 76 def old_device @old_device end |
Class Method Details
.change_platform(old_device, new_device) ⇒ UnsupportedOperation
90 91 92 93 94 |
# File 'lib/fastlane/plugin/sync_devices/helper/sync_devices_helper/device_patch.rb', line 90 def self.change_platform(old_device, new_device) = "Cannot change platform of the device '#{new_device.udid}' " \ "(#{old_device.platform} -> #{new_device.platform})" new(, old_device, new_device) end |
.internal_inconsistency(patch, old_device, new_device) ⇒ UnsupportedOperation
100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/fastlane/plugin/sync_devices/helper/sync_devices_helper/device_patch.rb', line 100 def self.internal_inconsistency(patch, old_device, new_device) info = { renamed?: patch.renamed?, enabled?: patch.enabled?, disabled?: patch.disabled?, created?: patch.created? } new( "Cannot change #{old_device} to #{new_device} because of internal inconsistency. #{info}", old_device, new_device ) end |