Class: Puppet::FileServing::Metadata::WindowsStat Private

Inherits:
MetaStat show all
Defined in:
lib/puppet/file_serving/metadata.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Methods inherited from MetaStat

#group, #mode, #owner

Constructor Details

#initialize(stat, path, source_permissions) ⇒ WindowsStat

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of WindowsStat.

Raises:

  • (ArgumentError)


73
74
75
76
77
# File 'lib/puppet/file_serving/metadata.rb', line 73

def initialize(stat, path, source_permissions)
  super(stat, source_permissions)
  @path = path
  raise(ArgumentError, _("Unsupported Windows source permissions option %{source_permissions}") % { source_permissions: source_permissions }) unless @source_permissions_ignore
end