Class: VagrantPlugins::GuestCentOS::Cap::SSHFSClient
- Inherits:
-
Object
- Object
- VagrantPlugins::GuestCentOS::Cap::SSHFSClient
- Defined in:
- lib/vagrant-sshfs/cap/guest/centos/sshfs_client.rb
Class Method Summary collapse
Class Method Details
.sshfs_install(machine) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# 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 # https://github.com/dustymabe/vagrant-sshfs/issues/123 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) ⇒ Object
22 23 24 |
# File 'lib/vagrant-sshfs/cap/guest/centos/sshfs_client.rb', line 22 def self.sshfs_installed(machine) machine.communicate.test("rpm -q fuse-sshfs") end |