From f9a66ef3c7d1dd3b7e60040dcfe75a39df484f4e Mon Sep 17 00:00:00 2001 From: Youngkyun Kim Date: Thu, 1 Sep 2016 05:25:28 -0400 Subject: [PATCH] update --- app/controllers/volume_controller.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/controllers/volume_controller.rb b/app/controllers/volume_controller.rb index b67ecb6..42ed6f5 100644 --- a/app/controllers/volume_controller.rb +++ b/app/controllers/volume_controller.rb @@ -43,7 +43,9 @@ class VolumeController < ApplicationController output = `cat configure.conf`.split("\n") output.each do |t| - if t.include? "host_name=" + if t.include? "project_path=" + @config["project_path"] = t.split("project_path=")[1] + elsif t.include? "host_user=" @config["host_user"] = t.split("host_user=")[1] elsif t.include? "host_ip=" @config["host_ip"] = t.split("host_ip=")[1] @@ -53,8 +55,7 @@ class VolumeController < ApplicationController @config["host_password"] = t.split("host_password=")[1] end end - - puts @config["host_user"] + puts @config["project_path"] puts @config["host_user"] puts @config["host_ip"] puts @config["host_port"]