Sha256: 09138a1cb96352a5eaf58dd59afb95253c083aab85a1d22798758ab81c088e83

Contents?: true

Size: 1.87 KB

Versions: 20

Compression:

Stored size: 1.87 KB

Contents

require '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?
    require 'Win32API' # case matters in this require!

    # 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
    # gems
    require 'win32/process'
    require 'puppet/util/windows/monkey_patches/dir'
    require 'win32/dir'
    require 'win32/service'

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-6.29.0 lib/puppet/util/windows.rb
puppet-6.29.0-x86-mingw32 lib/puppet/util/windows.rb
puppet-6.29.0-x64-mingw32 lib/puppet/util/windows.rb
puppet-6.29.0-universal-darwin lib/puppet/util/windows.rb
puppet-6.28.0 lib/puppet/util/windows.rb
puppet-6.28.0-x86-mingw32 lib/puppet/util/windows.rb
puppet-6.28.0-x64-mingw32 lib/puppet/util/windows.rb
puppet-6.28.0-universal-darwin lib/puppet/util/windows.rb
puppet-6.27.0 lib/puppet/util/windows.rb
puppet-6.27.0-x86-mingw32 lib/puppet/util/windows.rb
puppet-6.27.0-x64-mingw32 lib/puppet/util/windows.rb
puppet-6.27.0-universal-darwin lib/puppet/util/windows.rb
puppet-6.26.0 lib/puppet/util/windows.rb
puppet-6.26.0-x86-mingw32 lib/puppet/util/windows.rb
puppet-6.26.0-x64-mingw32 lib/puppet/util/windows.rb
puppet-6.26.0-universal-darwin lib/puppet/util/windows.rb
puppet-6.25.1 lib/puppet/util/windows.rb
puppet-6.25.1-x86-mingw32 lib/puppet/util/windows.rb
puppet-6.25.1-x64-mingw32 lib/puppet/util/windows.rb
puppet-6.25.1-universal-darwin lib/puppet/util/windows.rb