vagrant-git-sync 1.0.2 → 1.0.3
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 +5 -5
- data/README.md +1 -1
- data/lib/core/workspace.rb +13 -2
- data/vagrant-git-sync.gemspec +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 996a85f6e43d3db41bad95810204b801c195ef46659035a43c16ba653c0bcb7c
|
4
|
+
data.tar.gz: e03b1ecb137dab57de9a687ff941f86593027c427e0a804e6b3632a7e7bd6517
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97d1a13c6a01d9841380b3f5bd8f81e2ddc83062abd30d0a948718d938c4324f18458694d79aaa9da00b64d26315f25a70a8b2d4fefb075186196dd9923c4ed7
|
7
|
+
data.tar.gz: fff012b19d3bb9083f1df4365f3ba92341819696f5e172673ac8bd4e82df6bcf4263a59f751c874dd84395a9ee28567834fe12960f3ab3cab6dbc8d0b2abdabf
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ We can eliminate this manual step by allowing Vagrant to reason about, and sync
|
|
8
8
|
This requires some precaution that vagrant-git-sync manages for us:
|
9
9
|
|
10
10
|
- Is a feature branch being worked on (Are we off master)? Is the index dirty? If so, we probably don't want to update, and introduce surprises to the developer. vagrant-git-sync handles these cases automatically, and tries to not get in the way. Currently a feature branch is detected if the local branch is not "master".
|
11
|
-
- Do we have a stable internet connection? Can we reach the remote? vagrant-git-sync will try to bail out as early if it detects a less than steller connection. We don't want the plugin to introduce long pauses in workflow due to connectivity issues.
|
11
|
+
- Do we have a stable internet connection? Can we reach the remote? vagrant-git-sync will try to bail out as early as possible if it detects a less than steller connection. We don't want the plugin to introduce long pauses in workflow due to connectivity issues.
|
12
12
|
|
13
13
|
|
14
14
|
vagrant-git-sync works by injecting middleware very early on in the Vagrant lifecycle. This allows us to update any Vagrant configuration (Vagrantfile, Puppet, Chef, etc) before configuration is actually loaded by Vagrant.
|
data/lib/core/workspace.rb
CHANGED
@@ -10,7 +10,12 @@ module VagrantGitSyncModule
|
|
10
10
|
@env = env
|
11
11
|
@vagrant_cwd = env[:env].cwd.to_s.strip.chomp('/')
|
12
12
|
Dir.chdir(@vagrant_cwd) do
|
13
|
-
in_work_tree =
|
13
|
+
in_work_tree = ""
|
14
|
+
if Vagrant::Util::Platform.windows? then
|
15
|
+
in_work_tree = %x(git rev-parse --is-inside-work-tree 2> $null).strip
|
16
|
+
else
|
17
|
+
in_work_tree = %x(git rev-parse --is-inside-work-tree 2> /dev/null).strip
|
18
|
+
end
|
14
19
|
if in_work_tree == 'true' and Workspace.git_installed
|
15
20
|
@unsupported_workspace = false
|
16
21
|
else
|
@@ -53,7 +58,13 @@ module VagrantGitSyncModule
|
|
53
58
|
end
|
54
59
|
|
55
60
|
def self.git_installed
|
56
|
-
|
61
|
+
result = ""
|
62
|
+
if Vagrant::Util::Platform.windows? then
|
63
|
+
result = %x(where.exe git).strip
|
64
|
+
else
|
65
|
+
result = %x(which git).strip
|
66
|
+
end
|
67
|
+
not result.empty?
|
57
68
|
end
|
58
69
|
|
59
70
|
private
|
data/vagrant-git-sync.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-git-sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Bornemann
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
|
-
|
107
|
-
rubygems_version: 2.6.12
|
106
|
+
rubygems_version: 3.0.6
|
108
107
|
signing_key:
|
109
108
|
specification_version: 4
|
110
109
|
summary: A Vagrant plugin that allows teams to automatically keep Git-backed environments
|