While attempting to upload my cookbook to the server, I'm getting the following error statement.
"Uploading first_cb [0.1.0]
ERROR: ArgumentError: too short control escape"
And the command was:
$ knife cookbook upload first_cb
The default.rb contains the foolowing code:
package "httpd" do
action :install
end
service "httpd" do
action [:enable, :start]
end
template "/var/www/html/index.html" do
source "index.html"
mode "0644"
end
knife.rb
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "ktgirish"
client_key "#{current_dir}/ktgirish.pem"
chef_server_url "https://api.chef.io/organizations/girish123"
cookbook_path ["#{current_dir}/../cookbooks"]
Thanks in advance...!!!
current_dir = File.dirname(__FILE__) log_level :info log_location STDOUT node_name "ktgirish" client_key "#{current_dir}/ktgirish.pem" chef_server_url "https://api.chef.io/organizations/girish123" cookbook_path ["#{current_dir}/../cookbooks"]- ktgirish