Method: Inspec::Resources::FilePermissionsSelector#select_file_perms_style

Defined in:
lib/resources/file.rb

#select_file_perms_style(os) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/resources/file.rb', line 8

def select_file_perms_style(os)
  if os.unix?
    UnixFilePermissions.new(inspec)
  elsif os.windows?
    WindowsFilePermissions.new(inspec)
  end
end