Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update backport.rb #43

Closed
wants to merge 3 commits into from
Closed

Conversation

thomasvincent
Copy link

The require_relative method is not included since it was introduced in Ruby 1.9.2, later than the minimum version (1.8) for which the original code is checked. Also, CGI.escape is used instead of CGI::escape to reflect the changes in the CGI library. I almost needed this for a project on some very old infra. But ended up not needing it and didn't want it to go to waste.

The require_relative method is not included since it was introduced in Ruby 1.9.2, later than the minimum version (1.8) for which the original code is checked. Also, CGI.escape is used instead of CGI::escape to reflect the changes in the CGI library. I almost needed this for a project on some very old infra. But ended up not needing it and didn't want it to go to waste.
Here we have a Ruby script that checks if kerberos authentication is enabled or disabled. If it's set to true, the script outputs "Kerberos authentication is enabled". And if it's set to false, the script outputs "Kerberos authentication is disabled".

Along with that, I added some extra methods in the FileUtils module that allow you to set up various configuration options for a WebHDFS client. For example, you can set the host and port of the NameNode, enable or disable SSL and HTTPFS mode, and so on.
I refactored things so the error classes are directly defined as subclasses of the WebHDFS::Error class instead of using the older syntax of class definitions. Additionally, the Class. new method is used to create new classes, a more concise and modern way of defining classes in Ruby.
@thomasvincent thomasvincent closed this by deleting the head repository Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant