Skip to content

Instantly share code, notes, and snippets.

@jtslear
Created July 19, 2013 17:45
Show Gist options
  • Save jtslear/6041001 to your computer and use it in GitHub Desktop.
Save jtslear/6041001 to your computer and use it in GitHub Desktop.
What is the proper format?
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
Copy link

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