module WindowsSymlink

Public Class Methods

is_implemented() click to toggle source
   # File lib/puppet/feature/base.rb
59 def self.is_implemented
60   begin
61     ffi_lib :kernel32
62     attach_function :CreateSymbolicLinkW, [:lpwstr, :lpwstr, :dword], :boolean
63 
64     true
65   rescue LoadError
66     Puppet.debug { "CreateSymbolicLink is not available" }
67     false
68   end
69 end