At the moment to encrypt a data bag, I have to do :
system "knife data bag from file TemporaryEncrypting \"#{enc_file_path}\" --secret-file #{Secret_Key_Path}"
and that doesn't work because knife can't find a config file and I can't seem to get it read the one in C:\chef
.
How do I do this from within ruby?
I worked out how to encrypt inside of ruby, just use this code:
Answer achieved with information from this answer, here is the code in question: