Add 'gem thin': WebBrick is deprecated
This commit is contained in:
@@ -2,6 +2,7 @@ class ApplicationController < ActionController::Base
|
||||
# Prevent CSRF attacks by raising an exception.
|
||||
# For APIs, you may want to use :null_session instead.
|
||||
# protect_from_forgery with: :exception
|
||||
helper_method :volume_mount, :volume_unmount, :volume_create, :volume_delete, :volume_start, :volume_stop
|
||||
|
||||
def get_conf
|
||||
@config = Hash.new
|
||||
|
||||
@@ -101,7 +101,7 @@ class VolumeController < ApplicationController
|
||||
command << "force"
|
||||
puts command
|
||||
`#{command}`
|
||||
# redirect_to '/volume/index'
|
||||
redirect_to '/volume/index'
|
||||
end
|
||||
|
||||
def volume_stop
|
||||
@@ -132,7 +132,7 @@ class VolumeController < ApplicationController
|
||||
command << "-p " + @config["host_port"].to_s + " "
|
||||
end
|
||||
command << @config["host_user"].to_s + "@" + @config["host_ip"].to_s
|
||||
command << " gluster volume start " + volume_name
|
||||
command << " gluster volume start " + volume_name.to_s
|
||||
puts command
|
||||
`#{command}`
|
||||
redirect_to '/volume/index'
|
||||
|
||||
Reference in New Issue
Block a user