lib/cucumber/chef/steps/chef_steps.rb in cucumber-chef-3.0.0.rc.0 vs lib/cucumber/chef/steps/chef_steps.rb in cucumber-chef-3.0.0.rc.1
- old
+ new
@@ -48,16 +48,16 @@
memo.merge(cookbook_path => [cookbook]) { |k,o,n| k = o << n }
end
cookbooks.each do |cookbook_path, cookbooks|
- $test_lab.knife_cli(%Q{cookbook upload #{cookbooks.join(" ")} -o #{cookbook_path}}, :silence => true)
+ $cc_client.test_lab.knife_cli(%(cookbook upload #{cookbooks.join(" ")} -o #{cookbook_path}), :silence => true)
end
end
And /^all of the cookbooks in "([^\"]*)" (has|have) been (updated|uploaded)$/ do |cookbook_path, ignore0, ignore1|
- $test_lab.knife_cli(%Q{cookbook upload -a -o #{cookbook_path}}, :silence => true)
+ $cc_client.test_lab.knife_cli(%(cookbook upload -a -o #{cookbook_path}), :silence => true)
end
################################################################################
And /^the following (environment|environments) (has|have) been (updated|uploaded):$/ do |ignore0, ignore1, ignore2, table|
@@ -65,13 +65,13 @@
environment = entry['environment']
environment_path = entry['environment_path']
if File.extname(environment).empty?
Dir.glob(File.join(environment_path, "#{environment}.*")).each do |environment_file|
- $test_lab.knife_cli(%Q{environment from file #{environment_file}}, :silence => true)
+ $cc_client.test_lab.knife_cli(%(environment from file #{environment_file}), :silence => true)
end
else
- $test_lab.knife_cli(%Q{environment from file #{File.join(environment_path, environment)}}, :silence => true)
+ $cc_client.test_lab.knife_cli(%(environment from file #{File.join(environment_path, environment)}), :silence => true)
end
end
end
################################################################################