Skip to content

Commit e53d8eb

Browse files
committed
consolidate dev and multidev
1 parent 17446dd commit e53d8eb

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

local/etc/uceap.d/_deploy_code.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function _deploy_code() {
2+
_assert_terminus_vars
3+
_sftp_code
4+
terminus drush -- $DRUSH_TASK
5+
}

local/etc/uceap.d/deploy-to-dev.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
function deploy_to_dev() {
22
export TERMINUS_ENV="dev"
3+
_deploy_code
34

4-
_assert_terminus_vars
5-
_sftp_code
65
terminus env:commit --force -y
7-
8-
terminus drush -- $DRUSH_TASK
96
}
107

118
_deploy_to_dev_desc='deploys the local code to the Pantheon DEV environment'

local/etc/uceap.d/deploy-to-multidev.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
function deploy_to_multidev() {
2-
_assert_terminus_vars
3-
_sftp_code
4-
5-
terminus drush -- $DRUSH_TASK
2+
_deploy_code
63
}
74

85
_deploy_to_multidev_desc='deploys the local code to a Pantheon multidev'

0 commit comments

Comments
 (0)