Initial Chef repository

This commit is contained in:
Greg Karékinian
2015-07-21 19:45:23 +02:00
parent 7e5401fc71
commit ee4079fa85
1151 changed files with 185163 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
module FirewallCookbook
module Helpers
def port_to_s(p)
if p && p.is_a?(Integer)
p.to_s
elsif p && p.is_a?(Array)
p.join(',')
elsif p && p.is_a?(Range)
"#{p.first}:#{p.last} "
end
end
end
end