Skip to content

Instantly share code, notes, and snippets.

Created July 15, 2015 13:16
Show Gist options
  • Save anonymous/3f1df089643b1169b58b to your computer and use it in GitHub Desktop.
Save anonymous/3f1df089643b1169b58b to your computer and use it in GitHub Desktop.
write each hash to file
zabbix.templates_export.each do |key, value|
export_file = File.new("#{key}", "w+")
export_file.write(value)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment