Created
November 2, 2011 01:55
-
-
Save josephreynolds/1332643 to your computer and use it in GitHub Desktop.
This is now throwing an error when we run chef-client -i
This file contains hidden or 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
class Machine< | |
Struct.new(:name,:ipaddress,:role,:env) | |
def print_machine_csv | |
name.length==0 ? printf(",") : printf("\"%s\",", name) | |
address.length==0 ? printf(",") : printf("\"%s\",", address) | |
role.length==0 ? printf(",") : printf("\"%s\",", role) | |
env.length==0 ? printf(",") : printf("\"%s\",", env) | |
printf("\n") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment