Module: Chef::Mixin::FileClass

Instance Method Summary collapse

Instance Method Details

#file_classObject



25
26
27
28
29
30
31
32
# File 'lib/chef/mixin/file_class.rb', line 25

def file_class
  @host_os_file ||= if ChefUtils.windows?
                      require_relative "../win32/file"
                      Chef::ReservedNames::Win32::File
                    else
                      ::File
                    end
end