Method: Specinfra::Command::Base::File.change_owner
- Defined in:
- lib/specinfra/command/base/file.rb
.change_owner(file, owner, group = nil) ⇒ Object
144 145 146 147 |
# File 'lib/specinfra/command/base/file.rb', line 144 def change_owner(file, owner, group=nil) owner = "#{owner}:#{group}" if group "chown #{owner} #{escape(file)}" end |