abc/ops/cookbooks/vendor/ark/libraries/windows_owner.rb
2019-07-01 10:15:24 -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