Class: Puppet::Pops::Lookup::EnvironmentContext::FileData Private

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/pops/lookup/context.rb

Overview

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.

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, inode, mtime, size, data) ⇒ FileData

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 FileData.

API:

  • private



12
13
14
15
16
17
18
# File 'lib/puppet/pops/lookup/context.rb', line 12

def initialize(path, inode, mtime, size, data)
  @path = path
  @inode = inode
  @mtime = mtime
  @size = size
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

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.

API:

  • private



10
11
12
# File 'lib/puppet/pops/lookup/context.rb', line 10

def data
  @data
end

Instance Method Details

#valid?(stat) ⇒ Boolean

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:

API:

  • private



20
21
22
# File 'lib/puppet/pops/lookup/context.rb', line 20

def valid?(stat)
  stat.ino == @inode && stat.mtime == @mtime && stat.size == @size
end