update
This commit is contained in:
@@ -5,6 +5,7 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
def get_conf
|
||||
@config = Hash.new
|
||||
|
||||
output = `cat configure.conf`.split("\n")
|
||||
output.each do |t|
|
||||
if t.include? "project_path="
|
||||
@@ -21,6 +22,8 @@ class ApplicationController < ActionController::Base
|
||||
@config["host_password"] = t.split("host_password=")[1]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
return @config
|
||||
end
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ class NodeController < ApplicationController
|
||||
new_node = Node.new
|
||||
new_node.host_name = params[:host_name]
|
||||
new_node.host_ip = params[:host_ip]
|
||||
new_node.host_port = params[:host_port]
|
||||
new_node.user_name = params[:user_name]
|
||||
new_node.user_password = params[:user_password]
|
||||
new_node.save
|
||||
|
||||
Reference in New Issue
Block a user