vagrant-sshfs 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/RELEASE.txt +3 -0
- data/lib/vagrant-sshfs/cap/guest/redhat/sshfs_client.rb +36 -10
- data/lib/vagrant-sshfs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68c00a268dd8b861a0dccc09d8038bade7d6fdda953fa4790fb057ad304c8f5b
|
4
|
+
data.tar.gz: f2e5f1162a74cb9bf5034d243167cca7f69f7e5ecf4bff5d74235c134f232674
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
9
|
+
gem "vagrant", :git => "https://github.com/mitchellh/vagrant.git", :ref => 'v2.2.7'
|
10
10
|
end
|
11
11
|
|
12
12
|
group :plugins do
|
data/RELEASE.txt
CHANGED
@@ -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
|
-
|
7
|
-
|
8
|
-
|
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
|
-
|
12
|
-
|
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
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2020-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: win32-process
|