Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nigelkersten/1024367 to your computer and use it in GitHub Desktop.
Save nigelkersten/1024367 to your computer and use it in GitHub Desktop.
If Puppet was more like Objective-C
apache_pkg = [[Package alloc] initWithEnsure: latest];
apache_conf = [[File alloc] initWithEnsure: file source: @"puppet:///modules/apache/apache2.conf"];
apache_service = [[Service alloc] initWithEnsure: running enable: true];
[[PLNotificationCenter defaultCenter] addNotification:apache_conf target:apache_service];
[[PLRequirementCenter defaultCenter] addRequirement:apache_service target:apache_pkg];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment