class OS::Puppet::Fencing::NodeResolver

Public Class Methods

new(nodes_location) click to toggle source
# File lib/fencing/node_resolver.rb, line 9
def initialize(nodes_location)
        @location = nodes_location
end

Public Instance Methods

resolve(file_name) click to toggle source
# File lib/fencing/node_resolver.rb, line 13
def resolve(file_name)
        File.read(File.join(@location, "#{file_name}.yaml"))
end