Module: Filander::Chown
- Includes:
- Base
- Included in:
- Filander
- Defined in:
- lib/filander/actions/chown.rb
Instance Method Summary
collapse
Methods included from Base
#create_directory_for, #entries, #join_destination, #join_source, #report, #with_report
Instance Method Details
#chown(filename, user) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/filander/actions/chown.rb', line 5
def chown(filename, user)
report :chown, "#{user} #{filename}"
unless Filander.behavior == :pretend
system "chown -R #{user} #{join_destination(filename)}"
end
end
|