Skip to content

Commit

Permalink
Add install task for Drupal projects
Browse files Browse the repository at this point in the history
Add an `install` task to Drupal `run` files to install Drupal with
Drush.
  • Loading branch information
opdavies committed Dec 16, 2023
1 parent c7fddd8 commit 932c8f4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/drupal/run.twig
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ function help {
printf "\nExtended help:\n Each task has comments for general usage\n"
}

# Install Drupal.
function install {
drush site:install -y "${@}"
}

function lint:dockerfile {
docker container run --rm -i \
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3059 -t style "${@}" - < Dockerfile
Expand Down
5 changes: 5 additions & 0 deletions tests/snapshots/output/drupal-commerce-kickstart/run
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ function help {
printf "\nExtended help:\n Each task has comments for general usage\n"
}

# Install Drupal.
function install {
drush site:install -y "${@}"
}

function lint:dockerfile {
docker container run --rm -i \
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3059 -t style "${@}" - < Dockerfile
Expand Down
5 changes: 5 additions & 0 deletions tests/snapshots/output/drupal-localgov/run
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ function help {
printf "\nExtended help:\n Each task has comments for general usage\n"
}

# Install Drupal.
function install {
drush site:install -y "${@}"
}

function lint:dockerfile {
docker container run --rm -i \
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3059 -t style "${@}" - < Dockerfile
Expand Down
5 changes: 5 additions & 0 deletions tests/snapshots/output/drupal/run
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ function help {
printf "\nExtended help:\n Each task has comments for general usage\n"
}

# Install Drupal.
function install {
drush site:install -y "${@}"
}

function lint:dockerfile {
docker container run --rm -i \
hadolint/hadolint hadolint --ignore DL3008 --ignore DL3059 -t style "${@}" - < Dockerfile
Expand Down

0 comments on commit 932c8f4

Please sign in to comment.