-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #8216
- Loading branch information
Showing
4 changed files
with
17 additions
and
13 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 @@ | ||
Fixed docs scripts. |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Distributions are created asynchronously. Create one, and specify the repository version that will | ||
# be served at the base path specified. | ||
pulp ansible distribution create --name "baz" --base-path "my_content" --repository "foo" --version 1 | ||
pulp ansible distribution create --name "bar" --base-path "some_content" --repository "foo" --version 0 |
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 |
---|---|---|
@@ -1,18 +1,21 @@ | ||
# Install from PyPI | ||
pip install pulp-cli[pygments] # colorized output | ||
pip install pulp-cli # no color output | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# Install from source | ||
git clone https://github.com/pulp/pulp-cli.git # or your fork url | ||
cd pulp-cli | ||
pip install -e . | ||
cd .. | ||
export BASE_ADDR=${BASE_ADDR:-http://pulp:80} | ||
|
||
if [ -z "$(pip freeze | grep pulp-cli)" ]; then | ||
echo "Installing pulp-cli" | ||
pip install pulp-cli[pygments] | ||
fi | ||
|
||
# Set up CLI config file | ||
mkdir ~/.config/pulp | ||
cat > ~/.config/pulp/settings.toml << EOF | ||
if [ ! -f ~/.config/pulp/settings.toml ]; then | ||
echo "Configuring pulp-cli" | ||
mkdir ~/.config/pulp | ||
cat > ~/.config/pulp/settings.toml << EOF | ||
[cli] | ||
base_url = "http://pulp:80" # common to be localhost | ||
base_url = "$BASE_ADDR" | ||
verify_ssl = false | ||
format = "json" | ||
EOF | ||
fi |
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