Skip to content

Commit

Permalink
Make sure EOL at end of file is there in config.yaml, fixes #1740 (#1742
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rfay committed Jul 29, 2019
1 parent 6b76de8 commit 2948e7e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions pkg/ddevapp/backdrop.go
Expand Up @@ -232,9 +232,9 @@ func getBackdropUploadDir(app *DdevApp) string {

// getBackdropHooks for appending as byte array.
func getBackdropHooks() []byte {
backdropHooks := `
# post-import-db:
# - exec: drush cc all`
backdropHooks := `# post-import-db:
# - exec: drush cc all
`
return []byte(backdropHooks)
}

Expand Down
9 changes: 4 additions & 5 deletions pkg/ddevapp/drupal.go
Expand Up @@ -602,16 +602,15 @@ func getDrupalUploadDir(app *DdevApp) string {
}

// Drupal8Hooks adds a d8-specific hooks example for post-import-db
const Drupal8Hooks = `
# post-import-db:
const Drupal8Hooks = `# post-import-db:
# - exec: drush cr
# - exec: drush updb
`

// Drupal7Hooks adds a d7-specific hooks example for post-import-db
const Drupal7Hooks = `
# post-import-db:
# - exec: drush cc all`
const Drupal7Hooks = `# post-import-db:
# - exec: drush cc all
`

// getDrupal7Hooks for appending as byte array
func getDrupal7Hooks() []byte {
Expand Down
3 changes: 2 additions & 1 deletion pkg/ddevapp/templates.go
Expand Up @@ -342,7 +342,8 @@ const ConfigInstructions = `
# See https://ddev.readthedocs.io/en/stable/users/extending-commands/ for more
# information on the commands that can be extended and the tasks you can define
# for them. Example:
#hooks:`
#hooks:
`

// SequelproTemplate is the template for Sequelpro config.
var SequelproTemplate = `<?xml version="1.0" encoding="UTF-8"?>
Expand Down
6 changes: 3 additions & 3 deletions pkg/ddevapp/typo3.go
Expand Up @@ -124,9 +124,9 @@ func getTypo3UploadDir(app *DdevApp) string {
}

// Typo3Hooks adds a TYPO3-specific hooks example for post-import-db
const Typo3Hooks = `
# post-start:
# - exec: composer install -d /var/www/html`
const Typo3Hooks = `# post-start:
# - exec: composer install -d /var/www/html
`

// getTypo3Hooks for appending as byte array
func getTypo3Hooks() []byte {
Expand Down
6 changes: 3 additions & 3 deletions pkg/ddevapp/wordpress.go
Expand Up @@ -65,10 +65,10 @@ func NewWordpressConfig(app *DdevApp, absPath string) *WordpressConfig {
}

// wordPressHooks adds a wp-specific hooks example for post-start
const wordPressHooks = `
# Un-comment to emit the WP CLI version after ddev start.
const wordPressHooks = `# Un-comment to emit the WP CLI version after ddev start.
# post-start:
# - exec: wp cli version`
# - exec: wp cli version
`

// getWordpressHooks for appending as byte array
func getWordpressHooks() []byte {
Expand Down

0 comments on commit 2948e7e

Please sign in to comment.