Add 'gem thin': WebBrick is deprecated

This commit is contained in:
kyg516
2016-09-14 16:23:13 +09:00
parent e6774a071f
commit b97c484ff8
5 changed files with 41 additions and 59 deletions

View File

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

View File

@@ -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'