Skip to content

Commit

Permalink
Shepherd scaffold no longer runs after composer install by default. (#15
Browse files Browse the repository at this point in the history
)
  • Loading branch information
caseyfw authored Sep 6, 2017
1 parent fbf51ce commit 7ecb68d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public function __construct(Composer $composer, IOInterface $io)
*/
public function onPostCmdEvent(\Composer\Script\Event $event)
{
$event->getIO()->write("Execute Drupal scaffold.");
$this->executeDrupalScaffold($event);
$event->getIO()->write("Updating Shepherd scaffold files.");
$this->updateShepherdScaffoldFiles();
$event->getIO()->write("Creating necessary directories.");
Expand All @@ -58,17 +56,6 @@ public function onPostCmdEvent(\Composer\Script\Event $event)
$this->removeWritePermissions();
}

/**
* Run Drupal scaffold handler.
*/
public function executeDrupalScaffold($event)
{
$root = $this->getDrupalRootPath();
$drupalScaffoldHandler = new DrupalScaffoldHandler($event->getComposer(), $event->getIO());
$drupalScaffoldHandler->downloadScaffold();
$drupalScaffoldHandler->generateAutoload();
}

/**
* Update the Shepherd scaffold files.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function activate(Composer $composer, IOInterface $io)
public static function getSubscribedEvents()
{
return array(
ScriptEvents::POST_INSTALL_CMD => 'postCmd',
// ScriptEvents::POST_INSTALL_CMD => 'postCmd',
ScriptEvents::POST_UPDATE_CMD => 'postCmd',
);
}
Expand Down

0 comments on commit 7ecb68d

Please sign in to comment.