lib/kuzushi.rb in kuzushi-0.0.25 vs lib/kuzushi.rb in kuzushi-0.0.26
- old
+ new
@@ -191,9 +191,12 @@
def process_files(f)
file(f) do |tmp|
task "write #{f.file}" do
cp_file(tmp, f.file)
+ shell "chmod #{f.mode} #{f.file}" if f.mode
+ shell "chown #{f.user} #{f.file}" if f.user
+ shell "chgrp #{f.group} #{f.file}" if f.group
end
end
end
def process_crontab(cron)