From 6f45cdc1ed09a95e26a8324da108dfc5a3ecba9b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 7 Feb 2012 21:20:33 -0800 Subject: [PATCH] Some code cleanup --- lib/vagrant/hosts/gentoo.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/vagrant/hosts/gentoo.rb b/lib/vagrant/hosts/gentoo.rb index 789f6ca19..d91b211bb 100644 --- a/lib/vagrant/hosts/gentoo.rb +++ b/lib/vagrant/hosts/gentoo.rb @@ -1,12 +1,8 @@ -require 'pathname' - module Vagrant module Hosts class Gentoo < Linux def self.match? - release_file = Pathname.new("/etc/gentoo-release") - - return release_file.exist? + return File.exists?("/etc/gentoo-release") end # Normal, mid-range precedence.