guests/redhat: Use require_relative in redhat plugin

This commit is contained in:
Seth Vargo 2016-06-05 19:13:06 -04:00
parent aaedc48425
commit c12b413c2e
No known key found for this signature in database
GPG Key ID: 905A90C2949E8787
1 changed files with 1 additions and 10 deletions

View File

@ -7,7 +7,7 @@ module VagrantPlugins
description "Red Hat Enterprise Linux guest support."
guest("redhat", "linux") do
require File.expand_path("../guest", __FILE__)
require_relative "guest"
Guest
end
@ -36,19 +36,10 @@ module VagrantPlugins
Cap::NFSClient
end
guest_capability("redhat", "nfs_client_installed") do
require_relative "cap/nfs_client"
Cap::NFSClient
end
guest_capability("redhat", "rsync_install") do
require_relative "cap/rsync"
Cap::RSync
end
def self.dnf?(machine)
machine.communicate.test("/usr/bin/which -s dnf")
end
end
end
end