Class: Puppet::FileServing::Metadata::MetaStat Private
- Extended by:
- Forwardable
- 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.
Direct Known Subclasses
Instance Method Summary collapse
- #group ⇒ Object private
-
#initialize(stat, source_permissions) ⇒ MetaStat
constructor
private
A new instance of MetaStat.
- #mode ⇒ Object private
- #owner ⇒ Object private
Constructor Details
#initialize(stat, source_permissions) ⇒ MetaStat
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 MetaStat.
47 48 49 50 |
# File 'lib/puppet/file_serving/metadata.rb', line 47 def initialize(stat, ) @stat = stat @source_permissions_ignore = (! || == :ignore) end |
Instance Method Details
#group ⇒ Object
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.
56 57 58 |
# File 'lib/puppet/file_serving/metadata.rb', line 56 def group @source_permissions_ignore ? Process.egid : @stat.gid end |
#mode ⇒ Object
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.
60 61 62 |
# File 'lib/puppet/file_serving/metadata.rb', line 60 def mode @source_permissions_ignore ? 0644 : @stat.mode end |