in Windows,Unable to upload cookbook to hosted chef server. my Knife.rd file :
# See http://docs.chef.io/config_rb_knife.html for more information on knife configuration options
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "xxxxx"
client_key "#{current_dir}/xxxxx.pem"
validation_client_name "wis-validator"
validation_key "#{current_dir}/wis-validator.pem"
chef_server_url "https://api.chef.io/organizations/xxxx"
cookbook_path ["#{current_dir}/../cookbooks/"]
When i run knife upload learn_chef_apache2
command, getting below error message
ERROR: Attempt to use relative path 'learn_chef_apache2' when current directory is outside the repository path. ERROR: Current working directory is 'E:/Prasanna_POC/learn_chef'.
I'm running the knife upload command from the path where cookbooks folder present and inside that learn_chef_apache2 cookbook present