If you're upgrading from a previous version of Rocketeer, here are the major changes you'll need to look for:
- Project is now 5.4+, if you still use 5.3, which is now EOL, it's time to upgrade
Rocketeer\Traits\Taskwas moved toRocketeer\Abstracts\AbstractTaskRocketeer\Traits\Pluginwas moved toRocketeer\Abstracts\AbstractPluginRocketeer\Plugins\Notifierwas renamed toRocketeer\Plugins\AbstractNotifier- The
$task->serverproperty was renamed to$task->localStorage - Every connection/repository related method that was previously on
$task->rocketeerwas moved to$task->connections(getConnection,getStage,getConnectionCredentials, etc) - The
getConnectionCredentialsnow always return an array of server credentials even there is only one server. To get the credentials of the only server or of one in particular, call$task->connections->getServerCredentials(connection = current, server = 0) - The following methods:
php,artisan,runArtisan,runMigrations,runSeed,runTests,composerandrunComposerhave been removed and replaced by the Binaries system (see relevant documentation). Per example if you were doing$task->runMigrations(seed = false)you'll now do$task->artisan()->migrate(seed = false) - The following methods:
cloneRepository,copyRepositoryandupdateRepositoryhave been removed and replaced by the Strategy system (see relevant documentation). If you were doing$task->updateRepository()you'll now do$task->getStrategy('Deploy')->update() - The following events are deprecated and have been replaced by subtasks and their matching before/after hooks:
cloneRepositoryandcopyRepository=>create-release.beforerunComposer=>dependencies.beforecheckTestsResults=>test.before