diff --git a/resources/file.rb b/resources/file.rb index 894a828..0d4fa62 100644 --- a/resources/file.rb +++ b/resources/file.rb @@ -15,9 +15,12 @@ end action_class do - def create_file(folder, user, filename, content) + def create_file(folder, user, filename, file_content) file 'create file with content' do - content content + content <<~FILE + # Managed by Chef. Local changes will be overwritten. + #{file_content} + FILE mode '0640' owner user path "#{folder}/.bashrc.d/#{filename}"