Reputation: 166
How can I check what is processor's vendor in Ruby / Vagrantfile? I was looking for universal way, not OS-specific.
It'll be enough to check if it's AMD or Intel - I don't need to know exact model etc.
Upvotes: 0
Views: 147
Reputation: 2244
Use the facter
gem
model = Facter.value(:architecture)
It will return one of the following: "x86_64", "amd64", "i386", /parisc/, "hppa", "ia64"
Upvotes: 1