Method: LS4::Membership#add_node
- Defined in:
- lib/ls4/logic/membership.rb
#add_node(nid, address, name, rsids, location) ⇒ Object
172 173 174 175 176 177 178 179 180 |
# File 'lib/ls4/logic/membership.rb', line 172 def add_node(nid, address, name, rsids, location) node = Node.new(nid, address, name, rsids, location) if @nodes.get(nid) raise "nid already exist: #{nid}" end @nodes.add(node) update_active_rsids node end |