module Ceph::Crush::Location::NodeInfo
This Module loads information about this node from a json file
Public Class Methods
load()
click to toggle source
# File lib/ceph/crush/location/node_info/parser.rb, line 6 def self.load Ceph::Crush::Location::Logger.send('loading node info') require 'json' Ceph::Crush::Location.nodeinfo = JSON.parse( ::File.read(Ceph::Crush::Location.options[:nodeinfo]) ) rescue Ceph::Crush::Location.nodeinfo = {} end