RTECO-1536 - Add jf ruby command for native RubyGems/Bundler support#3574
Open
agrasth wants to merge 2 commits into
Open
RTECO-1536 - Add jf ruby command for native RubyGems/Bundler support#3574agrasth wants to merge 2 commits into
agrasth wants to merge 2 commits into
Conversation
Wires the native RubyGems/Bundler support into the JFrog CLI: - Register `jf ruby` command in buildtools/cli.go with SkipFlagParsing - RubyCmd handler: extracts native tool, server-id, build details, delegates to RubyCommand via ExecWithPackageManager - Add Ruby flag set (BuildName, BuildNumber, module, Project, serverId) - Add docs/buildtools/rubycommand/help.go with usage examples - Route gem/bundle through `jf ruby` in packagealias/dispatch.go (Ghost Frog) - Add 5 integration tests (version passthrough, help bypass, error handling) Note: go.mod contains local replace directives for build-info-go and jfrog-cli-artifactory (development only, to be replaced at merge time). Co-authored-by: Cursor <cursoragent@cursor.com>
The --repo flag specifies an Artifactory repository name and lets jf construct the full gems API URL from the server config, so users do not need to pass full Artifactory URLs for gem install/push commands. Also updates help text with --repo examples and adds integration test. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Registers the
jf ruby <gem|bundle>command in the JFrog CLI, wiring up the native RubyGems/Bundler support with full authentication, build-info collection, and Ghost Frog integration.Depends on: jfrog/jfrog-cli-artifactory#499
What is included in this PR
jf rubywithSkipFlagParsing: truefor transparent arg passthrough--server-id,--repo,--build-name,--build-number,--module,--projectconsumed by jf; everything else forwarded to native tool--repoflag: Specifies Artifactory repo name; jf constructs the full gems API URL from server config (no need to pass full URLs)gem/bundlealiases route throughjf ruby <tool>Usage examples
Test plan
go build ./...- compiles with local replacesgo test -run TestRuby)