onceover-octocatalog-diff 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onceover/octocatalog/diff/cli.rb +20 -2
- data/lib/onceover/octocatalog/diff/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: 9a75366ba4d3680c354c2ffffb5a3ca24e7b09b6
|
4
|
+
data.tar.gz: b3277d9f992709e902aac156c18b02a77df213fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 741bb04f8e00773863d9faaafec317b88c21db3119626349ca6b0f026c4124ad5bfd9893680e8f33b8fdd26d63a1ff195d2f6fb8f1c12778c5ee289f43f63824
|
7
|
+
data.tar.gz: cc6513276ce1278009c8519724f97c56c093b4e73bd16fe51e0c4a3e6283cf746587ecb13c065fe1506686cf1876984008578e06af258251ababa466f1208ae5
|
@@ -80,9 +80,27 @@ revisions to compare between.
|
|
80
80
|
binary = `which puppet`.chomp
|
81
81
|
|
82
82
|
logger.debug "Running Octocatalog diff"
|
83
|
-
logger.debug "Command: octocatalog-diff --fact-file #{tempdir}/spec/factsets/#{test.nodes[0].name}.yaml -f #{opts[:from]} -t #{opts[:to]} --basedir #{tempdir} --puppet-binary #{binary} --bootstrap-script #{tempdir}/bootstrap_script.rb"
|
84
83
|
logger.info "Compiling catalogs for #{test.classes[0].name} on #{test.nodes[0].name}"
|
85
|
-
|
84
|
+
|
85
|
+
command_args = [
|
86
|
+
'--fact-file',
|
87
|
+
"#{tempdir}/spec/factsets/#{test.nodes[0].name}.yaml",
|
88
|
+
'--from',
|
89
|
+
opts[:from],
|
90
|
+
'--to',
|
91
|
+
opts[:to],
|
92
|
+
'--basedir',
|
93
|
+
tempdir,
|
94
|
+
'--puppet-binary',
|
95
|
+
binary,
|
96
|
+
'--bootstrap-script',
|
97
|
+
"'#{tempdir}/bootstrap_script.rb'",
|
98
|
+
'--hiera-config',
|
99
|
+
repo.hiera_config_file,
|
100
|
+
]
|
101
|
+
|
102
|
+
cmd = "octocatalog-diff #{command_args.join(' ')}"
|
103
|
+
logger.debug "Running: #{cmd}"
|
86
104
|
Open3.popen3(cmd) do |stdin, stdout, stderr, wait_thr|
|
87
105
|
exit_status = wait_thr.value
|
88
106
|
@results << {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onceover-octocatalog-diff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dylan Ratcliffe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|