onceover-octocatalog-diff 0.1.4 → 0.1.5
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 +5 -1
- 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: 784dd39ffcb74eff41fdebe214a136b077b847a5
|
4
|
+
data.tar.gz: 2ef6eef78a526545bbd99eacbf37ac43701e6bdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e379d2744f6020d8143259f4de6cd3a743713f95294f4bb6a9e1e33e6ba6dd19fbbdf27d8e2e185a31eba5a9fffabefd9a5bbef89533b565818aedb3f3aa92d
|
7
|
+
data.tar.gz: 4c9b9cc4b3cab6ece39669a4097b11abc44008cd51f389b6d815f88f332ad745dfb602b29f2bee80a7e122aa8c9a74bd3b4f0485f5fab6bcab9fd2bec3f7c4bb
|
@@ -82,6 +82,8 @@ revisions to compare between.
|
|
82
82
|
logger.debug "Running Octocatalog diff"
|
83
83
|
logger.info "Compiling catalogs for #{test.classes[0].name} on #{test.nodes[0].name}"
|
84
84
|
|
85
|
+
command_prefix = ENV['BUNDLE_GEMFILE'] ? 'bundle exec ' : ''
|
86
|
+
|
85
87
|
command_args = [
|
86
88
|
'--fact-file',
|
87
89
|
"#{tempdir}/spec/factsets/#{test.nodes[0].name}.yaml",
|
@@ -97,9 +99,11 @@ revisions to compare between.
|
|
97
99
|
"'#{tempdir}/bootstrap_script.rb'",
|
98
100
|
'--hiera-config',
|
99
101
|
repo.hiera_config_file,
|
102
|
+
'--pass-env-vars',
|
103
|
+
ENV.keys.keep_if {|k| k =~ /^RUBY|^BUNDLE/ }.join(',')
|
100
104
|
]
|
101
105
|
|
102
|
-
cmd = "octocatalog-diff #{command_args.join(' ')}"
|
106
|
+
cmd = "#{command_prefix}octocatalog-diff #{command_args.join(' ')}"
|
103
107
|
logger.debug "Running: #{cmd}"
|
104
108
|
Open3.popen3(cmd) do |stdin, stdout, stderr, wait_thr|
|
105
109
|
exit_status = wait_thr.value
|
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.5
|
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-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|