Skip to content

Instantly share code, notes, and snippets.

@Miguelme
Miguelme / contracts.avsc
Created January 27, 2022 10:57
Feature Contracts
{
"name": "activation-uplift-input",
"namespace": "growth-analytics",
"type": "record",
"fields": [
{
"name": "city",
"type": "string"
},
{
jenkins:
clouds:
- docker:
name: "docker"
dockerApi:
dockerHost:
uri: "tcp://docker:2376"
templates:
- labelString: "docker-agent"
dockerTemplateBase:
jenkins:
systemMessage: "Jenkins configured automatically by Jenkins Configuration as Code plugin\n\n"
globalNodeProperties:
- envVars:
env:
- key: VARIABLE1
value: foo
- key: VARIABLE2
value: bar
securityRealm:
extension NSManagedObject{
static func createItem(moc: NSManagedObjectContext, entityName: String) -> NSManagedObject {
return NSEntityDescription.insertNewObjectForEntityForName( entityName, inManagedObjectContext: moc)
}
static func getListOfItems(moc: NSManagedObjectContext, entityName: String) -> [NSManagedObject]? {
let fetchRequest = NSFetchRequest(entityName: entityName)
do {