Skip to content

Instantly share code, notes, and snippets.

Created May 8, 2017 08:05
Show Gist options
  • Save anonymous/3db66e1232a2c552d590be42d1c64b93 to your computer and use it in GitHub Desktop.
Save anonymous/3db66e1232a2c552d590be42d1c64b93 to your computer and use it in GitHub Desktop.
hosts.each { |each_hostgroup| each_hostgroup.delete("ID") }
pcnames = hosts.map { |hosts| hosts["Name"] }
pcnames = pcnames.join('","')
puts "" + "#{pcnames}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment