Update 'volume info' page

This commit is contained in:
Youngkyun Kim
2016-08-20 05:31:55 -04:00
parent c4f1675cc2
commit 1893bd87be
565 changed files with 74737 additions and 3 deletions

View File

@@ -1,5 +1,10 @@
class VolumnController < ApplicationController
def info
@output = `ls`
@output = get_info.split("\n")
end
def get_info
return `sshpass -pakfm77 ssh root@gluster-1 gluster volume info`
end
end

View File

@@ -45,11 +45,13 @@
<div class="clearfix"></div>
</div>
<div class="x_content">
<%=@output%>
<%@output.each do |t|%>
<%=t%> </br>
<%end%>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
<!-- /page content -->