nixenvironment 0.0.133 → 0.0.134

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
  SHA1:
3
- metadata.gz: fc83052e3d3cab51497e3568e29d1b8b7544ba88
4
- data.tar.gz: 051dacc0592e5fb05f16b51d737a72c2a6c69757
3
+ metadata.gz: d0a473efe4d69dddf84f83f48b3e10cdfae4bbf2
4
+ data.tar.gz: e47bca374a65336b758d21866bcd4c25cbe61378
5
5
  SHA512:
6
- metadata.gz: 06de397ae7021f9d083603f67976630920921bccd048e6e1a3221433df94c0c3f26c53cf3dd4c2999e904c38cccf374a721059475ff04f0c296dec2e85e9f8dc
7
- data.tar.gz: c3ed4242ed2e4202899437765300771e8f1a98252aa5df6c54e1cf601378747ebd9ac2dc10ec41bd0ac4c269ce70253e0ff4ccc828cafea264931feefad6e34b
6
+ metadata.gz: adab622f98434f2855228331b8568be67592b9cb21bd5771117e823ef55acfabc83388cabe2e72c06f81cea1ffaa8af5b910a6740af16253d8f71969f9c8fd35
7
+ data.tar.gz: 2e64bd6878198a84ebe1eac92a598f7a0d1acc74bab976b301ef7b3cb2594314647629abd4c07beb90ab6044326aa7cd772db7d278aad0819d2a168f6b08a5be
@@ -13,22 +13,34 @@ module GitHelper
13
13
  def clone_environment
14
14
  FileUtils.mkdir_p(path_to_environment)
15
15
 
16
- Dir.chdir(path_to_environment) { `git clone git@nix.githost.io.write:NIX_iPhone_Internal/IJE.git .` }
16
+ Dir.chdir(path_to_environment) do
17
+ unless system('git clone git@nix.githost.io.write:NIX_iPhone_Internal/IJE.git .')
18
+ if system('git clone https://nix.githost.io/NIX_iPhone_Internal/IJE.git .')
19
+ `git remote set-url origin git@nix.githost.io.write:NIX_iPhone_Internal/IJE.git`
20
+ end
21
+ end
22
+ end
17
23
  end
18
24
 
19
25
  def clone_provisioning_updater
20
26
  FileUtils.mkdir_p(path_to_provisioning_updater)
21
-
22
- Dir.chdir(path_to_provisioning_updater) { `git clone git@nix.githost.io:NIX_iPhone_Internal/NPU.git .` }
27
+
28
+ Dir.chdir(path_to_provisioning_updater) do
29
+ unless system('git clone git@nix.githost.io:NIX_iPhone_Internal/NPU.git .')
30
+ if system('git clone https://nix.githost.io/NIX_iPhone_Internal/NPU.git .')
31
+ `git remote set-url origin git@nix.githost.io:NIX_iPhone_Internal/NPU.git`
32
+ end
33
+ end
34
+ end
23
35
  end
24
36
 
25
- def set_git_hook(&hook_block)
37
+ def set_git_hook
26
38
  Thread.new do
27
39
  Dir.chdir(path_to_environment) do
28
- while true
40
+ loop do
29
41
  if repos_changed
30
42
  `git pull`
31
- hook_block.call()
43
+ yield
32
44
  end
33
45
 
34
46
  sleep(15)
@@ -1,3 +1,3 @@
1
1
  module Nixenvironment
2
- VERSION = '0.0.133'
2
+ VERSION = '0.0.134'
3
3
  end
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.133
4
+ version: 0.0.134
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen