Skip to content

Instantly share code, notes, and snippets.

@jrich523
Created August 1, 2018 17:00
Show Gist options
  • Save jrich523/f09db4d657eca565d82a974b28abf1df to your computer and use it in GitHub Desktop.
Save jrich523/f09db4d657eca565d82a974b28abf1df to your computer and use it in GitHub Desktop.
def cpus
return @foreman_host.cpus unless @foreman_host.cpus.nil?
return @puppet_guest.cpus unless @puppet_guest.cpus.nil?
raise "#{hostname.to_s} doesn't have a foreman_host/puppet_guest to determine cpus"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment