Skip to content

Instantly share code, notes, and snippets.

View shyam-habarakada's full-sized avatar
🌱
In the weeds

Shyam Habarakada shyam-habarakada

🌱
In the weeds
  • Smartsheet, 10Kft
  • Seattle, WA
  • X @shyamh
View GitHub Profile
@phred
phred / pedantically_commented_playbook.yml
Last active November 3, 2023 01:55
Very complete Ansible playbook, showing off all the options
---
####
#### THIS IS OLD AND OUTDATED
#### LIKE, ANSIBLE 1.0 OLD.
####
#### PROBABLY HIT UP https://docs.ansible.com MY DUDES
####
#### IF IT BREAKS I'M JUST SOME GUY WITH
#### A DOG, OK, SORRY
####
RKObjectManager* objectManager = [RKObjectManager objectManagerWithBaseURL:@"http://10.0.1.4:3000"];
RKObjectMapping* busesMapping = [RKObjectMapping mappingForClass:[Autobus class]];
[busesMapping mapKeyPath:@"model" toAttribute:@"model"];
[busesMapping mapKeyPath:@"tour_id" toAttribute:@"tourId"];
[busesMapping mapKeyPath:@"seat" toAttribute:@"seats"];
[busesMapping mapKeyPath:@"bus_number" toAttribute:@"busNumber"];
[busesMapping mapKeyPath:@"created_at" toAttribute:@"createdAt"];
[busesMapping mapKeyPath:@"updated_at" toAttribute:@"updatedAt"];