This Module loads information about this node from a json file
6 7 8 9 10 11 12
# 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]) ) end