From 6716f426e9f5206c78f5e9826b781699da20f446 Mon Sep 17 00:00:00 2001 From: bee0005 Date: Sun, 4 Sep 2016 05:37:33 +0000 Subject: [PATCH] update --- app/controllers/home_controller.rb | 6 +----- app/views/home/index.html.erb | 9 +++++---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index f7b5dfb..92563ab 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -10,11 +10,7 @@ class HomeController < ApplicationController def make_directory current_dir = params[:current_dir] directory_name = params[:directory_name] - # `cd /#{current_dir}` - # `cd /#{current_dir} & mkdir #{directory_name}` - puts "mkdir #{current_dir}/#{directory_name}" `mkdir #{current_dir}/#{directory_name}` - #output = `sshpass -p#{@config["host_password"]} ssh #{@config["host_port"]} #{@config["host_user"]}@#{@config["host_ip"]} gluster volume delete #{volume_name}` - redirect_to '/home/index' + redirect_to '/home/index' end end diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 85379f5..fd45546 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -93,13 +93,12 @@
-

Current directory : <%=@current_dir%>

+

Current directory : <%=@current_dir%>

-

@@ -135,7 +134,7 @@ <% end %> <%=t["auth"]%> <%=t["size"]%> - <%=t["date"]%> + <%=t["date"]%> <%end%> @@ -185,6 +184,8 @@