Sha256: 7cb0a0607ef8ea3025672b9658a8b70328938269123e8da5593217ec811bf3cf

Contents?: true

Size: 1.69 KB

Versions: 96

Compression:

Stored size: 1.69 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 Service
    DEFAULT_TIMEOUT = 30
  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

96 entries across 96 versions & 1 rubygems

Version Path
puppet-7.34.0 lib/puppet/util/windows.rb
puppet-7.34.0-x86-mingw32 lib/puppet/util/windows.rb
puppet-7.34.0-x64-mingw32 lib/puppet/util/windows.rb
puppet-7.34.0-universal-darwin lib/puppet/util/windows.rb
puppet-7.33.0 lib/puppet/util/windows.rb
puppet-7.33.0-x86-mingw32 lib/puppet/util/windows.rb
puppet-7.33.0-x64-mingw32 lib/puppet/util/windows.rb
puppet-7.33.0-universal-darwin lib/puppet/util/windows.rb
puppet-7.32.1 lib/puppet/util/windows.rb
puppet-7.32.1-x86-mingw32 lib/puppet/util/windows.rb
puppet-7.32.1-x64-mingw32 lib/puppet/util/windows.rb
puppet-7.32.1-universal-darwin lib/puppet/util/windows.rb
puppet-7.31.0 lib/puppet/util/windows.rb
puppet-7.31.0-x86-mingw32 lib/puppet/util/windows.rb
puppet-7.31.0-x64-mingw32 lib/puppet/util/windows.rb
puppet-7.31.0-universal-darwin lib/puppet/util/windows.rb
puppet-7.30.0 lib/puppet/util/windows.rb
puppet-7.30.0-x86-mingw32 lib/puppet/util/windows.rb
puppet-7.30.0-x64-mingw32 lib/puppet/util/windows.rb
puppet-7.30.0-universal-darwin lib/puppet/util/windows.rb