class VagrantPlugins::GuestCentOS::Cap::SSHFSClient
Public Class Methods
sshfs_install(machine)
click to toggle source
# File lib/vagrant-sshfs/cap/guest/centos/sshfs_client.rb, line 5 def self.sshfs_install(machine) case machine.guest.capability("flavor") when :centos_8 # No need to install epel. fuse-sshfs comes from the PowerTools repo # https://bugzilla.redhat.com/show_bug.cgi?id=1758884 machine.communicate.sudo("yum -y install --enablerepo=PowerTools fuse-sshfs") when :centos_7, :centos # centos7 and centos6 # Install fuse-sshfs from epel if !epel_installed(machine) epel_install(machine) end machine.communicate.sudo("yum -y install fuse-sshfs") end end
sshfs_installed(machine)
click to toggle source
# File lib/vagrant-sshfs/cap/guest/centos/sshfs_client.rb, line 21 def self.sshfs_installed(machine) machine.communicate.test("rpm -q fuse-sshfs") end
Protected Class Methods
epel_install(machine)
click to toggle source
# File lib/vagrant-sshfs/cap/guest/centos/sshfs_client.rb, line 31 def self.epel_install(machine) machine.communicate.sudo("yum -y install epel-release") end
epel_installed(machine)
click to toggle source
# File lib/vagrant-sshfs/cap/guest/centos/sshfs_client.rb, line 27 def self.epel_installed(machine) machine.communicate.test("rpm -q epel-release") end