Method: Chef::Mixin::FileClass#file_class
- Defined in:
- lib/chef/mixin/file_class.rb
#file_class ⇒ Object
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/chef/mixin/file_class.rb', line 25 def file_class @host_os_file ||= if ChefConfig::Config.target_mode? ::TargetIO::File elsif ChefUtils.windows? require_relative "../win32/file" Chef::ReservedNames::Win32::File else ::File end end |