Sha256: c02f726c0ffa694cc67eb8dc683b252bc56d3b39848cb5de0cb22c1bfeb507c2

Contents?: true

Size: 1.65 KB

Versions: 24

Compression:

Stored size: 1.65 KB

Contents

require_relative '../../puppet/util/platform'

module Puppet::Util::Windows
  module ADSI
    class ADSIObject; end
    class User < ADSIObject; end
    class UserProfile; end
    class Group < ADSIObject; end
  end
  module File; end
  module Registry
  end
  module SID
    class Principal; end
  end
  class EventLog; end

  if Puppet::Util::Platform.windows?
    # Note: Setting codepage here globally ensures all strings returned via
    # WIN32OLE (Ruby's late-bound COM support) are encoded in Encoding::UTF_8
    #
    # Also, this does not modify the value of WIN32OLE.locale - which defaults
    # to 2048 (at least on US English Windows) and is not listed in the MS
    # locales table, here: https://msdn.microsoft.com/en-us/library/ms912047(v=winembedded.10).aspx
    require 'win32ole' ; WIN32OLE.codepage = WIN32OLE::CP_UTF8

    # these reference platform specific gems
    require_relative '../../puppet/ffi/windows'
    require_relative 'windows/string'
    require_relative 'windows/error'
    require_relative 'windows/com'
    require_relative 'windows/sid'
    require_relative 'windows/principal'
    require_relative 'windows/file'
    require_relative 'windows/security'
    require_relative 'windows/user'
    require_relative 'windows/process'
    require_relative 'windows/root_certs'
    require_relative 'windows/access_control_entry'
    require_relative 'windows/access_control_list'
    require_relative 'windows/security_descriptor'
    require_relative 'windows/adsi'
    require_relative 'windows/registry'
    require_relative 'windows/eventlog'
    require_relative 'windows/service'
    require_relative 'windows/monkey_patches/process'
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
puppet-7.12.0 lib/puppet/util/windows.rb
puppet-7.12.0-x86-mingw32 lib/puppet/util/windows.rb
puppet-7.12.0-x64-mingw32 lib/puppet/util/windows.rb
puppet-7.12.0-universal-darwin lib/puppet/util/windows.rb
puppet-7.11.0 lib/puppet/util/windows.rb
puppet-7.11.0-x86-mingw32 lib/puppet/util/windows.rb
puppet-7.11.0-x64-mingw32 lib/puppet/util/windows.rb
puppet-7.11.0-universal-darwin lib/puppet/util/windows.rb
puppet-7.10.0 lib/puppet/util/windows.rb
puppet-7.10.0-x86-mingw32 lib/puppet/util/windows.rb
puppet-7.10.0-x64-mingw32 lib/puppet/util/windows.rb
puppet-7.10.0-universal-darwin lib/puppet/util/windows.rb
puppet-7.9.0 lib/puppet/util/windows.rb
puppet-7.9.0-x86-mingw32 lib/puppet/util/windows.rb
puppet-7.9.0-x64-mingw32 lib/puppet/util/windows.rb
puppet-7.9.0-universal-darwin lib/puppet/util/windows.rb
puppet-7.8.0 lib/puppet/util/windows.rb
puppet-7.8.0-x86-mingw32 lib/puppet/util/windows.rb
puppet-7.8.0-x64-mingw32 lib/puppet/util/windows.rb
puppet-7.8.0-universal-darwin lib/puppet/util/windows.rb