Skip to content

Commit

Permalink
Make pull an alias of update (#548)
Browse files Browse the repository at this point in the history
* Make `pull` an alias of `update`

It was already an alias in code, this also removes it from the list
of available commands.

* Fix drupal postgres tests

---------

Co-authored-by: Karl Hepworth <karl.hepworth@gmail.com>
  • Loading branch information
rocketeerbkw and fubarhouse committed May 17, 2024
1 parent 590f2d4 commit c9bc6b4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 68 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/pygmy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,18 +248,18 @@ jobs:
docker-compose -p drupal-base rm;
cd ../../;
# - name: "[Example] Drupal Postgres"
# run: |
# cd lagoon-examples/drupal9-postgres;
# docker-compose -p drupal-postgres up -d;
# docker-compose -p drupal-postgres exec -T cli composer install;
# dockerize -wait http://drupal9-postgres.docker.amazee.io:80 -timeout 10s;
# curl --HEAD http://drupal9-postgres.docker.amazee.io;
# curl --HEAD http://drupal9-postgres.docker.amazee.io | grep -i "x-lagoon";
# ../../pygmy-linux-amd64 status | grep '\- http://drupal9-postgres.docker.amazee.io';
# docker-compose -p drupal-postgres down;
# docker-compose -p drupal-postgres rm;
# cd ../../;
- name: "[Example] Drupal Postgres"
run: |
cd lagoon-examples/drupal-postgres;
docker-compose -p drupal-postgres up -d;
docker-compose -p drupal-postgres exec -T cli composer install;
dockerize -wait http://drupal-postgres.docker.amazee.io:80 -timeout 10s;
curl --HEAD http://drupal-postgres.docker.amazee.io;
curl --HEAD http://drupal-postgres.docker.amazee.io | grep -i "x-lagoon";
../../pygmy-linux-amd64 status | grep '\- http://drupal-postgres.docker.amazee.io';
docker-compose -p drupal-postgres down;
docker-compose -p drupal-postgres rm;
cd ../../;
# - name: Node
# run: |
Expand Down
46 changes: 0 additions & 46 deletions cmd/pull.go

This file was deleted.

3 changes: 2 additions & 1 deletion cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ import (
// updateCmd represents the update command
var updateCmd = &cobra.Command{
Use: "update",
Aliases: []string{"pull"},
Example: "pygmy update",
Short: "Pulls Docker Images and recreates the Containers",
Long: `Pull all images Pygmy uses, as well as any images containing
the string 'amazeeio', which encompasses all lagoon images.`,
the string 'uselagoon', which encompasses all lagoon images.`,
Run: func(cmd *cobra.Command, args []string) {

library.Update(c)
Expand Down
9 changes: 0 additions & 9 deletions service/library/pull.go

This file was deleted.

0 comments on commit c9bc6b4

Please sign in to comment.