Skip to content

Instantly share code, notes, and snippets.

@traylenator
Created June 1, 2016 12:29
Show Gist options
  • Save traylenator/d03b2738a7410e740f3006315b56ecd9 to your computer and use it in GitHub Desktop.
Save traylenator/d03b2738a7410e740f3006315b56ecd9 to your computer and use it in GitHub Desktop.
List of hosts with a param set.
hostset = HostParameter.where(name: 'hwdbkopts').map(&:host).reject { |h| ! defined?(h.name) }.select { |h| h.managed == true }.map{|h| h[:name]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment