update
This commit is contained in:
parent
418fbf93d8
commit
179afe0bd7
@ -6,6 +6,14 @@ class ApplicationController < ActionController::Base
|
|||||||
def get_conf
|
def get_conf
|
||||||
@config = Hash.new
|
@config = Hash.new
|
||||||
|
|
||||||
|
one_node = Node.take
|
||||||
|
if !one_node.nil?
|
||||||
|
@config["host_name"] = one_node.host_name
|
||||||
|
@config["host_ip"] = one_node.host_ip
|
||||||
|
@config["user_name"] = one_node.user_name
|
||||||
|
@config["user_password"] = one_node.user_password
|
||||||
|
end
|
||||||
|
|
||||||
output = `cat configure.conf`.split("\n")
|
output = `cat configure.conf`.split("\n")
|
||||||
output.each do |t|
|
output.each do |t|
|
||||||
if t.include? "project_path="
|
if t.include? "project_path="
|
||||||
|
Loading…
Reference in New Issue
Block a user