lib/reap/task/fileperm.rb in reap-4.3.4 vs lib/reap/task/fileperm.rb in reap-4.4.0

- old
+ new

@@ -1,6 +1,11 @@ +# NOTE This task needs work! +# It needs to generalize more to give greater control +# over which files get what permissions. +# It also might be extended to do copyright tagging. + require 'reap/task' # ___ _ _ _____ _ # | _ \___ _ _ _ __ (_)_____(_)___ _ _ ___ |_ _|_ _ __| |__ # | _/ -_) '_| ' \| (_-<_-< / _ \ ' \(_-< | |/ _` (_-< / / @@ -11,11 +16,11 @@ class Reap::Perm < Reap::Task section_required true - task_desc "Normalize ownership and permissions of package files." + task_desc "Normalize ownership and permissions of files." task_help %{ reap perm @@ -24,20 +29,17 @@ user user name to use group group name to use } - #attr_accessor :user, :group, :filemod, :dirmod + alias_method :perm, :task - task_attr :perm + def run - def init perm.group ||= perm.user perm.filemod ||= 644 perm.dirmod ||= 755 - end - def run puts "Reap is shelling out work to chmod..." # misc misc = FileList.new misc.include('[A-Z]*')