module WindowsSymlink

Public Class Methods

is_implemented() click to toggle source
# File lib/puppet/feature/base.rb, line 79
def self.is_implemented
  begin
    ffi_lib :kernel32
    attach_function :CreateSymbolicLinkW, [:lpwstr, :lpwstr, :dword], :win32_bool

    true
  rescue LoadError => err
    Puppet.debug("CreateSymbolicLink is not available")
    false
  end
end