Module: Ceph::Crush::Location::NodeInfo

Defined in:
lib/ceph/crush/location/node_info/parser.rb

Overview

This Module loads information about this node from a json file

Class Method Summary collapse

Class Method Details

.loadObject



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