lib/chef-dk/cli.rb in chef-dk-1.3.43 vs lib/chef-dk/cli.rb in chef-dk-1.4.3

- old
+ new

@@ -95,15 +95,15 @@ end def show_version msg("Chef Development Kit Version: #{ChefDK::VERSION}") - ["chef-client", "delivery", "berks", "kitchen"].each do |component| + ["chef-client", "delivery", "berks", "kitchen", "inspec"].each do |component| result = Bundler.with_clean_env { shell_out("#{component} --version") } if result.exitstatus != 0 msg("#{component} version: ERROR") else - version = result.stdout.scan(/(?:master\s)?[\d+\.\(\)]+\S+/).join("\s") + version = result.stdout.lines.first.scan(/(?:master\s)?[\d+\.\(\)]+\S+/).join("\s") msg("#{component} version: #{version}") end end end