nixenvironment 0.0.152 → 0.0.153
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/lib/nixenvironment/jenkins/master/master_starter.rb +2 -2
- data/lib/nixenvironment/jenkins/slave/slave_deinitializer.rb +2 -2
- data/lib/nixenvironment/jenkins/slave/slave_starter.rb +2 -2
- data/lib/nixenvironment/scm.rb +8 -2
- data/lib/nixenvironment/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 63929e128e970fb670800e2b98d33ccd7dd070db098326c5fb5553a796949b58
|
|
4
|
+
data.tar.gz: 3b611ed2c8507218a271f4ed43f3644c66b112fe0e4cf57acec010a1d5c2edc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e90bc9880f0e5e9b99c6c2b61d81dc7bbe619a1d885c0f7b57e262f78de738bd39dfa1711871a69e128135b91d3bf3f9e7eb16741f09011071a2919a22145b4f
|
|
7
|
+
data.tar.gz: 7206fa6441584fb51598508ae03b8c8916b71a6a5ef3e297639f9d99cf885620c01f99accdcfb85788450d6a7aaed721d613d9c1c42d0b61cfddfddfad78ca15
|
|
@@ -15,8 +15,8 @@ class SlaveDeinitializer
|
|
|
15
15
|
raise 'Backup is not exist' unless check_backup_exist
|
|
16
16
|
|
|
17
17
|
# Provisioning profiles
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
# remove_local_provisioning_profiles
|
|
19
|
+
# restore_backup_provisioning_profiles
|
|
20
20
|
|
|
21
21
|
# ssh
|
|
22
22
|
remove_local_ssh
|
data/lib/nixenvironment/scm.rb
CHANGED
|
@@ -37,8 +37,14 @@ module Nixenvironment
|
|
|
37
37
|
current_revision = %x[ git rev-parse HEAD ]
|
|
38
38
|
last_revision_in_repo = %x[ git rev-list --all -n 1 ]
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
date_format = ENV.key?['USE_DATEFORMAT']
|
|
41
|
+
if date_format
|
|
42
|
+
# revision in datetime format
|
|
43
|
+
current_monotonic_revision = %x[ git log -1 --date=format:"%Y%m%d" --format="%ad" ]
|
|
44
|
+
else
|
|
45
|
+
# number of pushes before current
|
|
46
|
+
current_monotonic_revision = %x[ git rev-list --all --count ]
|
|
47
|
+
end
|
|
42
48
|
|
|
43
49
|
if current_revision == last_revision_in_repo
|
|
44
50
|
current_monotonic_revision = current_monotonic_revision.succ
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nixenvironment
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.153
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Karen
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2019-
|
|
12
|
+
date: 2019-10-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: cocoapods
|
|
@@ -336,8 +336,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
336
336
|
- !ruby/object:Gem::Version
|
|
337
337
|
version: '0'
|
|
338
338
|
requirements: []
|
|
339
|
-
|
|
340
|
-
rubygems_version: 2.7.4
|
|
339
|
+
rubygems_version: 3.0.3
|
|
341
340
|
signing_key:
|
|
342
341
|
specification_version: 4
|
|
343
342
|
summary: NIX projects build and deploy utility
|