class VagrantPlugins::GuestRedHat::Cap::SSHFSClient
Public Class Methods
sshfs_install(machine)
click to toggle source
# File lib/vagrant-sshfs/cap/guest/redhat/sshfs_client.rb, line 5 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
sshfs_installed(machine)
click to toggle source
# File lib/vagrant-sshfs/cap/guest/redhat/sshfs_client.rb, line 15 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/redhat/sshfs_client.rb, line 25 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
epel_installed(machine)
click to toggle source
# File lib/vagrant-sshfs/cap/guest/redhat/sshfs_client.rb, line 21 def self.epel_installed(machine) machine.communicate.test("rpm -q epel-release") end