vagrant-sshfs 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e9ff9b1fd87da6b91c13cfb4105db3effa881e20b2531b9cd4577fe93a3e44c
4
- data.tar.gz: ace7bd3d0aecc7be27a6ad38ce54a3feb8fd998d0d372abe0a234e375703160a
3
+ metadata.gz: 68c00a268dd8b861a0dccc09d8038bade7d6fdda953fa4790fb057ad304c8f5b
4
+ data.tar.gz: f2e5f1162a74cb9bf5034d243167cca7f69f7e5ecf4bff5d74235c134f232674
5
5
  SHA512:
6
- metadata.gz: 45788073570dd9a335cc52de46973d980743388d014c376ec4530d94f37c43c5fd58083c41de9e692868d6736258d4c0b84179f8c9ab7fdf884bef09a340bfab
7
- data.tar.gz: 4eb66e002b3d2f0d7a2ceacda2a602f043c96199196127830aaa5530c5d1790f66b73aaf41293afffdedcec7b303f9932638b391fcba49507943ca59a28ebe67
6
+ metadata.gz: 4afe022b17eff7aa2c4bed784dd05e8e9e4701bd6327b9792ff20c4ea551185037dc75a69100dfde7a06f47db9d06c404efeb532161427236d927eaca6257981
7
+ data.tar.gz: b9828d27f40ca3318c2877e2a6381f01a7d7594a54f96affbb73b2913843bcf4134f059cc458aaa16b600f395907c900f3767f6ebfaa4d3fa810f6606cbe4ef7
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ group :development do
6
6
  # We depend on Vagrant for development, but we don't add it as a
7
7
  # gem dependency because we expect to be installed within the
8
8
  # Vagrant environment itself using `vagrant plugin`.
9
- gem "vagrant", :git => "https://github.com/mitchellh/vagrant.git", :ref => 'v2.2.6'
9
+ gem "vagrant", :git => "https://github.com/mitchellh/vagrant.git", :ref => 'v2.2.7'
10
10
  end
11
11
 
12
12
  group :plugins do
@@ -1,5 +1,8 @@
1
1
 
2
2
  # point local system to git for vagrant-sshfs
3
+ - cd /usr/share/vagrant/gems/gems
4
+ - sudo mv vagrant-sshfs-1.3.3 vsshfs133
5
+ - sudo ln -s /var/b/shared/code/github.com/dustymabe/vagrant-sshfs ./vagrant-sshfs-1.3.3
3
6
 
4
7
  # Run misc tests
5
8
  cd /var/b/shared/code/github.com/dustymabe/vagrant-sshfs/test/misc
@@ -3,13 +3,27 @@ module VagrantPlugins
3
3
  module Cap
4
4
  class SSHFSClient
5
5
  def self.sshfs_install(machine)
6
- # Install epel rpm if not installed
7
- if !epel_installed(machine)
8
- epel_install(machine)
6
+
7
+ rhel_version = machine.guest.capability("flavor")
8
+
9
+ # Handle the case where Vagrant doesn't yet know how to
10
+ # detect and return :rhel_8 https://github.com/hashicorp/vagrant/pull/11453
11
+ if Gem::Version.new(Vagrant::VERSION) < Gem::Version.new('2.2.8')
12
+ rhel_version = vagrant_lt_228_flavor_compat(machine)
9
13
  end
10
14
 
11
- # Install sshfs (comes from epel repos)
12
- machine.communicate.sudo("yum -y install fuse-sshfs")
15
+ case rhel_version
16
+ when :rhel_8
17
+ # No need to install epel. fuse-sshfs comes from the PowerTools repo
18
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1758884
19
+ machine.communicate.sudo("yum -y install --enablerepo=PowerTools fuse-sshfs")
20
+ when :rhel_7, :rhel # rhel7 and rhel6
21
+ # Install fuse-sshfs from epel
22
+ if !epel_installed(machine)
23
+ epel_install(machine)
24
+ end
25
+ machine.communicate.sudo("yum -y install fuse-sshfs")
26
+ end
13
27
  end
14
28
 
15
29
  def self.sshfs_installed(machine)
@@ -23,11 +37,23 @@ module VagrantPlugins
23
37
  end
24
38
 
25
39
  def self.epel_install(machine)
26
- case machine.guest.capability("flavor")
27
- when :rhel_7
28
- machine.communicate.sudo("rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm")
29
- when :rhel # rhel6
30
- machine.communicate.sudo("rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm")
40
+ machine.communicate.sudo("yum -y install epel-release")
41
+ end
42
+
43
+ def self.vagrant_lt_228_flavor_compat(machine)
44
+ # This is a compatibility function to handle RHEL8 for
45
+ # vagrant versions that didn't include:
46
+ # https://github.com/hashicorp/vagrant/pull/11453
47
+ output = ""
48
+ machine.communicate.sudo("cat /etc/redhat-release") do |_, data|
49
+ output = data
50
+ end
51
+ if output =~ /(CentOS|Red Hat Enterprise|Scientific|Cloud|Virtuozzo)\s*Linux( .+)? release 8/i
52
+ return :rhel_8
53
+ elsif output =~ /(CentOS|Red Hat Enterprise|Scientific|Cloud|Virtuozzo)\s*Linux( .+)? release 7/i
54
+ return :rhel_7
55
+ else
56
+ return :rhel
31
57
  end
32
58
  end
33
59
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module SyncedFolderSSHFS
3
- VERSION = "1.3.3"
3
+ VERSION = "1.3.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-sshfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dusty Mabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-05 00:00:00.000000000 Z
11
+ date: 2020-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: win32-process