瀏覽代碼

corrección del nombre de los contenedores en el inventory

Luciano Andrade 7 年之前
父節點
當前提交
001f0304b8
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      tools/src/Release.php

+ 3 - 2
tools/src/Release.php

@@ -255,6 +255,7 @@ class Release extends Command
                 }
                 $this->_domain = $input->getOption("domain");
                 $this->_client = $input->getOption("client");
+                $this->_dir = realpath($dir);
 
                 if (!$this->_client) {
                     $this->_client = basename(realpath($dir));
@@ -1086,8 +1087,8 @@ class Release extends Command
         $all = "[all]\n";
         foreach ($composer->getServices() as $key => $value) {
             $tmp .= "[$key]\n";
-            $tmp .= $this->_client . "_" . $key . "_1\n\n";
-            $all .= $this->_client . "_" . $key . "_1\n";
+            $tmp .= basename($this->_dir) . "_" . $key . "_1\n\n";
+            $all .= basename($this->_dir) . "_" . $key . "_1\n";
         }
 
         $this->_dObj->file("inventory.ini")->content($tmp . $all);