Skip to content
Snippets Groups Projects
Verified Commit 3a6c1020 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Re-add cook publish and unpublish

parent a1607acc
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,8 @@ function usage { ...@@ -47,6 +47,8 @@ function usage {
echo " unpkg" >&2 echo " unpkg" >&2
echo " prepare" >&2 echo " prepare" >&2
echo " unprepare" >&2 echo " unprepare" >&2
echo " publish" >&2
echo " unpublish" >&2
echo " stage" >&2 echo " stage" >&2
echo " unstage" >&2 echo " unstage" >&2
echo " tar" >&2 echo " tar" >&2
...@@ -350,6 +352,15 @@ function op { ...@@ -350,6 +352,15 @@ function op {
untar) untar)
rm -rfv "${COOKBOOK_STAGE}.tar.gz" "${COOKBOOK_STAGE}.sig" "${COOKBOOK_STAGE}.toml" rm -rfv "${COOKBOOK_STAGE}.tar.gz" "${COOKBOOK_STAGE}.sig" "${COOKBOOK_STAGE}.toml"
;; ;;
publish)
mkdir -p "$REPO"
cp -v "${COOKBOOK_STAGE}.tar.gz" "$REPO/$1.tar.gz"
cp -v "${COOKBOOK_STAGE}.sig" "$REPO/$1.sig"
cp -v "${COOKBOOK_STAGE}.toml" "$REPO/$1.toml"
;;
unpublish)
rm -rfv "$REPO/$1.tar.gz" "$REPO/$1.sig" "$REPO/$1.toml"
;;
*) *)
usage $1 usage $1
;; ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment