Foreman has a version object, you can use it directly if you prefer.