onceover-octocatalog-diff 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68aa04b2c0ceb4c15ca00ab21af57ec27f2924ca
4
- data.tar.gz: 1a8d7817d910b3b9426f97a9ca9132448fd8a422
3
+ metadata.gz: 9a75366ba4d3680c354c2ffffb5a3ca24e7b09b6
4
+ data.tar.gz: b3277d9f992709e902aac156c18b02a77df213fb
5
5
  SHA512:
6
- metadata.gz: bd7c80e73b8a074c8610cb126917f313bb9a5412820fa33827c515b07cb9892af3ef52e8c74fff1ce5cd6dff29d11023094dc5a00476df357ff5e12d7b6f82c4
7
- data.tar.gz: a061f8dd56be4548ceb2093846c68461c48e004a8a8a45b2b9831bf9495343df5eccde2590e1420ff4889b5af0f985cde793deff3b96dbc15ac36d430bfbc2fb
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
- cmd = "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
+
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 << {
@@ -1,7 +1,7 @@
1
1
  class Onceover
2
2
  module Octocatalog
3
3
  module Diff
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
6
6
  end
7
7
  end
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.3
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-13 00:00:00.000000000 Z
11
+ date: 2017-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler