lib/chef-dk/cli.rb in chef-dk-0.14.25 vs lib/chef-dk/cli.rb in chef-dk-0.15.9

- old
+ new

@@ -95,15 +95,15 @@ end def show_version msg("Chef Development Kit Version: #{ChefDK::VERSION}") - ["chef-client", "berks", "kitchen"].each do |component| + ["chef-client", "delivery", "berks", "kitchen"].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(/[\d+\.]+\S+/).join + version = result.stdout.scan(/(?:master\s)?[\d+\.\(\)]+\S+/).join("\s") msg("#{component} version: #{version}") end end end