Skip to content

Commit

Permalink
Updated upgrade shell template/view files location change.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jan 14, 2014
1 parent dc68840 commit f95dc80
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/Console/Command/UpgradeShell.php
Expand Up @@ -78,15 +78,21 @@ public function locations() {

$moves = [
'Test' . DS . 'Case' => 'Test' . DS . 'TestCase',
'View' . DS . 'Elements' => 'View' . DS . 'Element',
'View' . DS . 'Emails' => 'View' . DS . 'Email',
'View' . DS . 'Layouts' => 'View' . DS . 'Layout',
'View' . DS . 'Layout' . DS . 'Emails' => 'View' . DS . 'Layout' . DS . 'Email',
'View' . DS . 'Scaffolds' => 'View' . DS . 'Scaffold',
'View' . DS . 'Errors' => 'View' . DS . 'Error',
'View' . DS . 'Elements' => 'Template' . DS . 'Element',
'View' . DS . 'Emails' => 'Template' . DS . 'Email',
'View' . DS . 'Layouts' => 'Template' . DS . 'Layout',
'Template' . DS . 'Layout' . DS . 'Emails' => 'Template' . DS . 'Layout' . DS . 'Email',
'View' . DS . 'Scaffolds' => 'Template' . DS . 'Scaffold',
'View' . DS . 'Errors' => 'Template' . DS . 'Error',
'View' . DS . 'Themed' => 'Template' . DS . 'Themed',
];
$dry = $this->params['dryRun'];

$this->out('<info>Creating "Template" folder</info>');
if (!$dry) {
mkdir('Template');
}

foreach ($moves as $old => $new) {
$old = $path . DS . $old;
$new = $path . DS . $new;
Expand Down

0 comments on commit f95dc80

Please sign in to comment.