view distributed/get_node_name.rb @ 13:e3fe67fee803

adde hello_post.rb
author Nobuyasu
date Mon, 20 Jan 2014 17:01:44 +0900
parents 223af50e60d5
children
line wrap: on
line source

module GetNodeList
  def get_node_list(filename)
    f = open(filename,"r")
    nodes = []
    f.each { |line| 
      if /.+jp/ =~ line then
        nodes.push(line) 
      end
    }
    return nodes
  end
end