Created
July 19, 2013 17:45
-
-
Save jtslear/6041001 to your computer and use it in GitHub Desktop.
What is the proper format?
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
class something { | |
package { [ "unzip", "python-paramiko", "python-jinja2", "PyYAML", "zlib", " | |
zlib-devel" ]: | |
ensure => "latest" | |
} | |
} | |
# Converted to: | |
class something { | |
package { [ | |
"unzip", | |
"python-paramiko", | |
"python-jinja2", | |
"PyYAML", | |
"zlib", | |
"zlib-devel" ]: | |
ensure => "present" | |
} | |
} |
drapergeek
commented
Jul 19, 2013
That would be my preferred way of handling it, only because I like the braces on its own lines so that new diffs don't change it.
I would also add in a comma on the last one, always.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment