Module: Inspec::Resources::FilePermissionsSelector

Included in:
FileResource
Defined in:
lib/inspec/resources/file.rb

Instance Method Summary collapse

Instance Method Details

#select_file_perms_style(os) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/inspec/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