Skip to content

Commit 7ecb68d

Browse files
authored
Shepherd scaffold no longer runs after composer install by default. (#15)
1 parent fbf51ce commit 7ecb68d

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

src/Handler.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ public function __construct(Composer $composer, IOInterface $io)
4646
*/
4747
public function onPostCmdEvent(\Composer\Script\Event $event)
4848
{
49-
$event->getIO()->write("Execute Drupal scaffold.");
50-
$this->executeDrupalScaffold($event);
5149
$event->getIO()->write("Updating Shepherd scaffold files.");
5250
$this->updateShepherdScaffoldFiles();
5351
$event->getIO()->write("Creating necessary directories.");
@@ -58,17 +56,6 @@ public function onPostCmdEvent(\Composer\Script\Event $event)
5856
$this->removeWritePermissions();
5957
}
6058

61-
/**
62-
* Run Drupal scaffold handler.
63-
*/
64-
public function executeDrupalScaffold($event)
65-
{
66-
$root = $this->getDrupalRootPath();
67-
$drupalScaffoldHandler = new DrupalScaffoldHandler($event->getComposer(), $event->getIO());
68-
$drupalScaffoldHandler->downloadScaffold();
69-
$drupalScaffoldHandler->generateAutoload();
70-
}
71-
7259
/**
7360
* Update the Shepherd scaffold files.
7461
*/

src/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function activate(Composer $composer, IOInterface $io)
3838
public static function getSubscribedEvents()
3939
{
4040
return array(
41-
ScriptEvents::POST_INSTALL_CMD => 'postCmd',
41+
// ScriptEvents::POST_INSTALL_CMD => 'postCmd',
4242
ScriptEvents::POST_UPDATE_CMD => 'postCmd',
4343
);
4444
}

0 commit comments

Comments
 (0)