Merge branch 'master' of https://github.com/oss2016summer/gluster-web-interface
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
class VolumnController < ApplicationController
|
||||
def info
|
||||
@output = get_info.split("\n")
|
||||
end
|
||||
|
||||
def get_info
|
||||
return `sshpass -pakfm77 ssh root@gluster-1 gluster volume info`
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -45,10 +45,13 @@
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<%@output.each do |t|%>
|
||||
<%=t%> </br>
|
||||
<%end%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /page content -->
|
||||
<!-- /page content -->
|
||||
|
||||
Reference in New Issue
Block a user