module RFacter::DSL::Facter::Util::FileRead
Methods for interacting with remote files.
@note The `exists?` part is uniqe to RFacter
.
@todo Possibly augment this with some top-level shims for File?
Public Class Methods
exists?(path)
click to toggle source
# File lib/rfacter/dsl.rb, line 325 def self.exists?(path) NODE.value.file(path).exist? end
read(path)
click to toggle source
# File lib/rfacter/dsl.rb, line 321 def self.read(path) NODE.value.file(path).content end