Sha256: 0de07033e67e51416ed88fe786178dfa091f16f1fd3dfdfa775a33c220cf463e
Contents?: true
Size: 1.05 KB
Versions: 5
Compression:
Stored size: 1.05 KB
Contents
module VagrantPlugins module GuestRedHat module Cap class SSHFSClient def self.sshfs_install(machine) # Install epel rpm if not installed if !epel_installed(machine) epel_install(machine) end # Install sshfs (comes from epel repos) machine.communicate.sudo("yum -y install fuse-sshfs") end def self.sshfs_installed(machine) machine.communicate.test("rpm -q fuse-sshfs") end protected def self.epel_installed(machine) machine.communicate.test("rpm -q epel-release") end def self.epel_install(machine) case machine.guest.capability("flavor") when :rhel_7 machine.communicate.sudo("rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm") when :rhel # rhel6 machine.communicate.sudo("rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm") end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems