onceover-octocatalog-diff 0.1.2 → 0.1.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 +4 -4
- data/lib/onceover/octocatalog/diff/cli.rb +10 -0
- data/lib/onceover/octocatalog/diff/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68aa04b2c0ceb4c15ca00ab21af57ec27f2924ca
|
4
|
+
data.tar.gz: 1a8d7817d910b3b9426f97a9ca9132448fd8a422
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|