Created
June 14, 2011 05:18
-
-
Save nigelkersten/1024367 to your computer and use it in GitHub Desktop.
If Puppet was more like Objective-C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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