private function download(string $fileName, string $tempFilePath): self
    {
        $uri = 'https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v' . self::VERSION . "/{$fileName}";

        $data = \file_get_contents($uri);

        if ($data === false) {
            throw new FileDownloadFailureException('Failed to download binary from Github for Ruby Standalone!');
        }

        $result = \file_put_contents($tempFilePath, $data);

        if ($result === false) {
            throw new FileDownloadFailureException('Failed to save binaries for Ruby Standalone!');
        }

        return $this;
    }
private function download(string $fileName, string $tempFilePath): self
    {
        $uri = 'https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v' . self::VERSION . "/{$fileName}";

        $data = \file_get_contents($uri);

        if ($data === false) {
            throw new FileDownloadFailureException('Failed to download binary from Github for Ruby Standalone!');
        }

        $result = \file_put_contents($tempFilePath, $data);

        if ($result === false) {
            throw new FileDownloadFailureException('Failed to save binaries for Ruby Standalone!');
        }

        return $this;
    }
private function download ( string $ fileName , string $ tempFilePath ) : self { $ uri = 'https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v' . self :: VERSION . "/{$fileName}" ; $ data = \ file_get_contents ( $ uri ) ; if ( $ data === false ) { throw new FileDownloadFailureException ( 'Failed to download binary from Github for Ruby Standalone!' ) ; } $ result = \ file_put_contents ( $ tempFilePath , $ data ) ; if ( $ result === false ) { throw new FileDownloadFailureException ( 'Failed to save binaries for Ruby Standalone!' ) ; } return $ this ; }
Download the binaries.

@param string $fileName     name of the file to be downloaded
@param string $tempFilePath location to download the file

@throws FileDownloadFailureException

@return InstallerLinux
Download the binaries .