diff --git a/templates/drupal/run.twig b/templates/drupal/run.twig index 0e616ed..58603a3 100755 --- a/templates/drupal/run.twig +++ b/templates/drupal/run.twig @@ -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 diff --git a/tests/snapshots/output/drupal-commerce-kickstart/run b/tests/snapshots/output/drupal-commerce-kickstart/run index bb43b7e..89437e2 100755 --- a/tests/snapshots/output/drupal-commerce-kickstart/run +++ b/tests/snapshots/output/drupal-commerce-kickstart/run @@ -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 diff --git a/tests/snapshots/output/drupal-localgov/run b/tests/snapshots/output/drupal-localgov/run index bb43b7e..89437e2 100755 --- a/tests/snapshots/output/drupal-localgov/run +++ b/tests/snapshots/output/drupal-localgov/run @@ -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 diff --git a/tests/snapshots/output/drupal/run b/tests/snapshots/output/drupal/run index c70906a..34ae0cd 100755 --- a/tests/snapshots/output/drupal/run +++ b/tests/snapshots/output/drupal/run @@ -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