clc-promote 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/promote/git_repo.rb +7 -0
- data/lib/promote/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8db91702cbb1fc6bbe5df65ddc99d03d56893fb
|
4
|
+
data.tar.gz: 316b9e382992403b284d8aa2d5b74242a37dce4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aa5e7cd29e4bb5b976cc5af35ccc434f4cc936b64c9f0e2246a3115f9b925c67509aee141c69c2c2dffeda40f7b9afa9a427597cb9b4d3f18583267f4669d18
|
7
|
+
data.tar.gz: 6ccc97d7e35ea270c222ec68c78a9d3d90d12ae8e370a2bb941d9c327e5799089ce6c2949b3e7c1d84e38fe3fc88485e44073384c5db5544c0f8e18ac9a19aed
|
data/lib/promote/git_repo.rb
CHANGED
@@ -42,8 +42,15 @@ module Promote
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
+
def refresh_index
|
46
|
+
git.diff("HEAD", scope_path).each do |diff|
|
47
|
+
# we do this to refresh the index
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
45
51
|
def check_sync(source, dest)
|
46
52
|
warnings = []
|
53
|
+
refresh_index
|
47
54
|
if git.status.changed.to_h.keys.include? source
|
48
55
|
warnings << "File #{source} has uncommitted changes."
|
49
56
|
end
|
data/lib/promote/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clc-promote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CenturyLink Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clc-git
|