Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #21 from codenamephp/#19_addHeaderToFile
Browse files Browse the repository at this point in the history
Resolves #19
  • Loading branch information
bastianschwarz committed Jun 24, 2020
2 parents a4067cc + 195fdc3 commit cc5e4ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions resources/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit cc5e4ba

Please sign in to comment.