abc/ops/cookbooks/vendor/ark/libraries/windows_owner.rb
2019-06-30 21:40:37 -04:00

14 lines
267 B
Ruby

module Ark
class WindowsOwner
def initialize(resource)
@resource = resource
end
attr_reader :resource
def command
"#{ENV.fetch('SystemRoot')}\\System32\\icacls \"#{resource.path}\\*\" /setowner \"#{resource.owner}\""
end
end
end