spaceship/lib/spaceship/connect_api/models/bundle_id.rb in fastlane-2.186.0 vs spaceship/lib/spaceship/connect_api/models/bundle_id.rb in fastlane-2.187.0

- old
+ new

@@ -78,8 +78,16 @@ client ||= Spaceship::ConnectAPI resp = client.post_bundle_id_capability(bundle_id_id: id, capability_type: capability_type, settings: settings) return resp.to_models.first end + + def update_capability(capability_type, enabled: false, settings: [], client: nil) + raise "capability_type is required " if capability_type.nil? + + client ||= Spaceship::ConnectAPI + resp = client.patch_bundle_id_capability(bundle_id_id: id, seed_id: seed_id, enabled: enabled, capability_type: capability_type, settings: settings) + return resp.to_models.first + end end end end