diff options
author | danielsdeleo <dan@opscode.com> | 2013-12-27 12:11:01 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-12-27 13:16:39 -0800 |
commit | 4e73bbfe4b47d25d89ab6c71c97405106f5563b5 (patch) | |
tree | 3b0a9447885b6cf5b1f3b20c914947f9753261d5 | |
parent | ed254383c4e37b28a8ebe28e0efabf262d0cf946 (diff) | |
download | chef-4e73bbfe4b47d25d89ab6c71c97405106f5563b5.tar.gz |
invoke chef-client as `ruby chef-client` because windows
Windows doesn't shebang, resulting in "BLAH is not recognized as an
internal or external command, operable program or batch file." error.
-rw-r--r-- | spec/integration/client/client_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/integration/client/client_spec.rb b/spec/integration/client/client_spec.rb index a114924666..62cdc513a5 100644 --- a/spec/integration/client/client_spec.rb +++ b/spec/integration/client/client_spec.rb @@ -15,7 +15,7 @@ cookbook_path "#{path_to('cookbooks')}" EOM chef_dir = File.join(File.dirname(__FILE__), "..", "..", "..", "bin") - result = shell_out("chef-client -c \"#{path_to('config/client.rb')}\" -o 'x::default'", :cwd => chef_dir) + result = shell_out("ruby #{chef_dir}/chef-client -c \"#{path_to('config/client.rb')}\" -o 'x::default'", :cwd => chef_dir) result.error! end @@ -151,7 +151,7 @@ end EOM chef_dir = File.join(File.dirname(__FILE__), "..", "..", "..", "bin") - result = shell_out("#{chef_dir}/chef-client -c \"#{path_to('config/client.rb')}\" arbitrary.rb", :cwd => path_to('')) + result = shell_out("ruby #{chef_dir}/chef-client -c \"#{path_to('config/client.rb')}\" arbitrary.rb", :cwd => path_to('')) result.error! IO.read(path_to('tempfile.txt')).should == '1' @@ -176,7 +176,7 @@ end EOM chef_dir = File.join(File.dirname(__FILE__), "..", "..", "..", "bin") - result = shell_out("#{chef_dir}/chef-client -c \"#{path_to('config/client.rb')}\" -o x::constant_definition arbitrary.rb", :cwd => path_to('')) + result = shell_out("ruby #{chef_dir}/chef-client -c \"#{path_to('config/client.rb')}\" -o x::constant_definition arbitrary.rb", :cwd => path_to('')) result.error! IO.read(path_to('tempfile.txt')).should == '1' |