diff options
author | Tim Smith <tsmith@chef.io> | 2018-12-04 20:32:28 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-12-04 21:14:57 -0800 |
commit | 3bd70f3972be56ee29bfff9f514e273b9b63846e (patch) | |
tree | a41bbb9992cfbe9e8ca5779856bbce943517302b | |
parent | ee9b39e59fcb99b44ce41fea6ee5b2f2993ee362 (diff) | |
download | chef-debug_omni.tar.gz |
Add some debugdebug_omni
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | omnibus_overrides.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/omnibus_overrides.rb b/omnibus_overrides.rb index b66e07fb1a..6cd8020eeb 100644 --- a/omnibus_overrides.rb +++ b/omnibus_overrides.rb @@ -27,4 +27,10 @@ override "openssl", version: "1.0.2q" # this pins the ohai omnibus definition ohai version to the same version that's # in the gemfile.lock, which is what the chef defition will end up using. If we # don't pin in this file we get master, which isn't the released version (usually) -override "ohai", version: "#{::File.readlines("Gemfile.lock", File.expand_path(File.dirname(__FILE__))).find { |l| l =~ /^\s+ohai \((\d+\.\d+\.\d+)\)/ }; 'v' + $1}" # rubocop: disable Layout/SpaceInsideStringInterpolation +gemfile_lock = File.join(File.expand_path(File.dirname(__FILE__)), "Gemfile.lock") +override "ohai", version: "#{::File.readlines(gemfile_lock).find { |l| l =~ /^\s+ohai \((\d+\.\d+\.\d+)\)/ }; 'v' + $1}" # rubocop: disable Layout/SpaceInsideStringInterpolation + +puts "DEBUG: The file we're in is #{__FILE__}" +puts "DEBUG: The dir we're in is #{File.expand_path(File.dirname(__FILE__))}" +puts "DEBUG: The gemfile.lock we're going to read is #{gemfile_lock}" +puts "DEBUG: #{::File.readlines(gemfile_lock)}" |