DNEnvironment::getConfigFilename PHP Method

getConfigFilename() public method

Returns the path to the ruby config file
public getConfigFilename ( ) : string
return string
    public function getConfigFilename()
    {
        if (!$this->Project()->exists()) {
            return '';
        }
        if (!$this->Filename) {
            return '';
        }
        return $this->DNData()->getEnvironmentDir() . '/' . $this->Project()->Name . '/' . $this->Filename;
    }

Usage Example

コード例 #1
0
 /**
  * 
  */
 public function testGetConfigFilename()
 {
     $expected = $this->envPath . '/testproject/uat.rb';
     $this->assertEquals($expected, $this->env->getConfigFilename());
 }