lib/chef/win32/file/info.rb in chef-0.10.10 vs lib/chef/win32/file/info.rb in chef-10.12.0.rc.1
- old
+ new
@@ -17,21 +17,21 @@
#
require 'chef/win32/file'
class Chef
- module Win32
+ module ReservedNames::Win32
class File
- # Objects of class Chef::Win32::File::Stat encapsulate common status
- # information for Chef::Win32::File objects. The information
- # is recorded at the moment the Chef::Win32::File::Stat object is
+ # Objects of class Chef::ReservedNames::Win32::File::Stat encapsulate common status
+ # information for Chef::ReservedNames::Win32::File objects. The information
+ # is recorded at the moment the Chef::ReservedNames::Win32::File::Stat object is
# created; changes made to the file after that point will not be reflected.
class Info
- include Chef::Win32::API::File
- include Chef::Win32::API
+ include Chef::ReservedNames::Win32::API::File
+ include Chef::ReservedNames::Win32::API
# http://msdn.microsoft.com/en-us/library/windows/desktop/aa363788(v=vs.85).aspx
def initialize(file_name)
raise Errno::ENOENT, file_name unless ::File.exist?(file_name)
@file_info = retrieve_file_info(file_name)
@@ -83,10 +83,10 @@
def ino
volume_serial_number + index
end
##############################
- # given a +Chef::Win32::API::File::FILETIME+ structure convert into a
+ # given a +Chef::ReservedNames::Win32::API::File::FILETIME+ structure convert into a
# Ruby +Time+ object.
#
def parse_time(file_time_struct)
wtime_to_time(make_uint64(file_time_struct[:dw_low_date_time],
file_time_struct[:dw_high_date_time]))