This commit is contained in:
bee0005
2016-09-21 09:12:46 +00:00
parent e9d72c6fc5
commit 418fbf93d8
5 changed files with 5 additions and 15 deletions

View File

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