public function parseFile($file, array $tokens = [])
    {
        $this->filePath = $file;
        $template = accioPath('resources/scripts/' . str_replace('.', '/', $this->filePath) . '.sh');

        if ($this->filesystem->exists($template)) {
            $this->parseString($this->filesystem->get($template), $tokens);
            return $this;
        }

        throw new RuntimeException('Template ' . $template . ' does not exist');
    }
public function parseFile($file, array $tokens = [])
    {
        $this->filePath = $file;
        $template = accioPath('resources/scripts/' . str_replace('.', '/', $this->filePath) . '.sh');

        if ($this->filesystem->exists($template)) {
            $this->parseString($this->filesystem->get($template), $tokens);
            return $this;
        }

        throw new RuntimeException('Template ' . $template . ' does not exist');
    }
public function parseFile ( $ file , array $ tokens = [ ] ) { $ this -> filePath = $ file ; $ template = accioPath ( 'resources/scripts/' . str_replace ( '.' , '/' , $ this -> filePath ) . '.sh' ) ; if ( $ this -> filesystem -> exists ( $ template ) ) { $ this -> parseString ( $ this -> filesystem -> get ( $ template ) , $ tokens ) ; return $ this ; } throw new RuntimeException ( 'Template ' . $ template . ' does not exist' ) ; }
Load a file and parse the the content.

@param string $file
@param array  $tokens

@return $this
Load a file and parse the the content .