AwsInspector\Model\Ec2\Instance::getFileContent PHP Method

getFileContent() public method

public getFileContent ( $file, $asUser = null )
    public function getFileContent($file, $asUser = null)
    {
        $result = $this->exec('cat ' . escapeshellarg($file), $asUser);
        return implode("\n", $result['output']);
    }