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 %>