Created
May 8, 2017 08:05
-
-
Save anonymous/3db66e1232a2c552d590be42d1c64b93 to your computer and use it in GitHub Desktop.
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
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