From 179afe0bd749e09e75ec35078b97eb2fd818810e Mon Sep 17 00:00:00 2001 From: bee0005 Date: Wed, 21 Sep 2016 09:18:18 +0000 Subject: [PATCH] update --- app/controllers/application_controller.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 8b3a78b..c1aa156 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -6,6 +6,14 @@ class ApplicationController < ActionController::Base def get_conf @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.each do |t| if t.include? "project_path="