update peer status

This commit is contained in:
bee0005
2016-09-28 10:27:54 +00:00
parent 537921c0ca
commit 510a8a200d
5 changed files with 53 additions and 10 deletions

View File

@@ -29,4 +29,16 @@ class NodeController < ApplicationController
one_node.destroy
redirect_to '/node/index'
end
def node_prove
one_node = Node.find(params[:node_id])
puts "gluster peer probe #{one_node.host_name}"
redirect_to '/node/index'
end
def node_detach
one_node = Node.find(params[:node_id])
puts "gluster peer detach #{one_node.host_name}"
redirect_to '/node/index'
end
end