-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes: #107
- Loading branch information
Showing
14 changed files
with
237 additions
and
124 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added CLI commands to documented workflows. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Add created Gem content to repository | ||
pulp gem repository content add --repository foo --href $CONTENT_HREF | ||
|
||
# After the task is complete, it gives us a new repository version | ||
pulp gem repository version show --repository foo |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Get a Gem package or choose your own | ||
curl -O https://fixtures.pulpproject.org/gem/gems/amber-1.0.0.gem | ||
|
||
# Upload it to Pulp | ||
pulp gem content upload --file "amber-1.0.0.gem" | ||
|
||
CONTENT_HREF=$(pulp gem content list | jq -r .[0].pulp_href) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Distributions are created asynchronously. Create one, and specify the publication that will | ||
# be served at the base path specified. | ||
pulp gem distribution create --name foo --base-path foo --publication "$PUBLICATION_HREF" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Create a new publication specifying the repository_version. | ||
# Alternatively, you can specify just the repository, and Pulp will assume the latest version. | ||
pulp gem publication create --repository foo --version 1 | ||
|
||
# Publications can only be referenced through their pulp_href | ||
PUBLICATION_HREF=$(pulp gem publication list | jq -r .[0].pulp_href) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Add remote to distribution to enable pull-through caching | ||
pulp gem distribution update --name foo --remote gem |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Create a remote that syncs all versions of panda into your repository. | ||
pulp gem remote create --name gem --url https://index.rubygems.org/ --includes '{"panda":null}' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Start by creating a new repository named "foo": | ||
pulp gem repository create --name foo |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Using the Remote we just created, we kick off a sync task | ||
pulp gem repository sync --name foo --remote gem | ||
|
||
# The sync command will by default wait for the sync to complete | ||
# Use Ctrl+c or the -b option to send the task to the background | ||
|
||
# Show the latest version when sync is done | ||
pulp gem repository version show --repository foo |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.