lib/cucumber/chef/provisioner.rb in cucumber-chef-3.0.0.rc.3 vs lib/cucumber/chef/provisioner.rb in cucumber-chef-3.0.0.rc.4

- old
+ new

@@ -36,10 +36,10 @@ @ui = ui @cookbooks_path = File.join(Cucumber::Chef.root_dir, "chef_repo", "cookbooks") @roles_path = File.join(Cucumber::Chef.root_dir, "chef_repo", "roles") - @chef_pre_11 = (Cucumber::Chef::Config.chef[:server_version].to_f < 11.0) + @chef_pre_11 = Cucumber::Chef::Config.chef_pre_11 bootstrap_template_file = (@chef_pre_11 ? 'ubuntu-precise-apt.erb' : 'ubuntu-precise-omnibus.erb') @bootstrap_template = File.join(Cucumber::Chef.root_dir, "lib", "cucumber", "chef", "templates", "bootstrap", bootstrap_template_file) end ################################################################################