lib/cuken/api/chef.rb in cuken-0.1.12 vs lib/cuken/api/chef.rb in cuken-0.1.13

- old
+ new

@@ -66,11 +66,10 @@ raise RuntimeError, "Could not find Repository #{repo}", caller end if repo = res[/ERROR: (.*) doesn't exist. Did you enter it correctly?/,1] raise RuntimeError, "ERROR: #{repo} doesn't exist. Did you enter it correctly? #{repo}", caller end - end def chef_clone_repo(ckbk_path, cookbook = false, repo = chef.remote_chef_repo, type = {'branch' => 'master'}) in_current_dir do pth = Pathname(ckbk_path).expand_path @@ -119,10 +118,10 @@ end raise(RuntimeError, "chef.knife_config_file is required", caller) unless chef.knife_config_file end cmd += " -c #{chef.knife_config_file.expand_path.to_s}" if chef.knife_config_file.expand_path.exist? cmd += " -o #{ckbk_pth}" if ckbk_pth_opt - cmd += " --log_level debug" if chef.knife_debug + # cmd += " --log_level debug" if chef.knife_debug chef.root_dir ||= current_dir in_chef_root do if interactive run_interactive(unescape("#{chef.knife_command}" + cmd)) else