onceover-octocatalog-diff 0.1.2 → 0.1.3

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: 55b1b1d978b0628b638d768b2dfd2b260ff94e41
4
- data.tar.gz: 0e9761af15e2241e50b9ed21ee00e9c95f5f593a
3
+ metadata.gz: 68aa04b2c0ceb4c15ca00ab21af57ec27f2924ca
4
+ data.tar.gz: 1a8d7817d910b3b9426f97a9ca9132448fd8a422
5
5
  SHA512:
6
- metadata.gz: 6480e63889835cad6fab8740d472a8ed020a7c832721eb50ad7e9a3eeb81938ee2c2962df0435f186c99d74facf1f983d96f89d1edbf6b01fe44d7ef0ca5fd60
7
- data.tar.gz: 0c7df87a98e4d0c465f67b588a0167ed2d3c31ef2b74b9aa13e011fe849a7c0a22c54b15fda683e3822cd81b11a72bdc770613eb702ad28e59a2069a39aafe79
6
+ metadata.gz: bd7c80e73b8a074c8610cb126917f313bb9a5412820fa33827c515b07cb9892af3ef52e8c74fff1ce5cd6dff29d11023094dc5a00476df357ff5e12d7b6f82c4
7
+ data.tar.gz: a061f8dd56be4548ceb2093846c68461c48e004a8a8a45b2b9831bf9495343df5eccde2590e1420ff4889b5af0f985cde793deff3b96dbc15ac36d430bfbc2fb
@@ -49,6 +49,11 @@ revisions to compare between.
49
49
  logger.debug "Copying controlrepo to #{tempdir}"
50
50
  FileUtils.copy_entry(repo.root,tempdir)
51
51
 
52
+ if File.directory?("#{r10k_cache_dir}/modules")
53
+ logger.debug "Copying modules from thread cache to #{tempdir}"
54
+ FileUtils.copy_entry("#{r10k_cache_dir}/modules","#{tempdir}/modules")
55
+ end
56
+
52
57
  logger.debug "Converting facts to yaml"
53
58
  Onceover::Octocatalog::Diff.create_facts_yaml(repo,"#{tempdir}/spec/factsets")
54
59
 
@@ -88,6 +93,11 @@ revisions to compare between.
88
93
  }
89
94
  end
90
95
  logger.info "Storing results for #{test.classes[0].name} on #{test.nodes[0].name}"
96
+
97
+ logger.debug "Backing up modules to thread cache #{tempdir}"
98
+ FileUtils.mv("#{tempdir}/modules","#{r10k_cache_dir}/modules",:force => true)
99
+
100
+ logger.debug "Removing temporary build cache"
91
101
  FileUtils.rm_r(tempdir)
92
102
  end
93
103
 
@@ -1,7 +1,7 @@
1
1
  class Onceover
2
2
  module Octocatalog
3
3
  module Diff
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onceover-octocatalog-diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Ratcliffe