Microsoft_WindowsAzure
[ class tree: Microsoft_WindowsAzure ] [ index: Microsoft_WindowsAzure ] [ all elements ]

Source for file index.php

Documentation is available at index.php

  1. <?php
  2. /**
  3.  * @command-handler $Name$Scaffolder
  4.  * 
  5.  * @command-handler-description Enter a description here for $Name$Scaffolder...
  6.  * @command-handler-header Optional $Name$Scaffolder header information.
  7.  * @command-handler-footer
  8.  * @command-handler-footer Optional $Name$Scaffolder footer information.
  9.  */ 
  10. class $Name$Scaffolder
  11. {
  12.     /**
  13.      * Runs the $Name$Scaffolder.
  14.      * 
  15.      * @command-name Run
  16.      * @command-description Runs the $Name$Scaffolder.
  17.      * 
  18.      * @command-parameter-for $scaffolderFile Argv --Phar Required. The scaffolder Phar file path. This is injected automatically.
  19.      * @command-parameter-for $rootPath Argv|ConfigFile --OutputPath|-out Required. The path to create the Windows Azure project structure. This is injected automatically.
  20.      * @command-parameter-for $name Argv|ConfigFile|Env --Name|-n Required. The name. This is a sample argument definition.
  21.      */
  22.     public function runCommand($scaffolderFile$rootPath$name)
  23.     {
  24.         // Sample: load Phar (if needed)
  25.         $phar new Phar($scaffolderFile);
  26.         
  27.         // Sample: extract to disk
  28.         $this->log('Extracting resources...');
  29.         $this->createDirectory($rootPath);
  30.         $this->extractResources($phar$rootPath);
  31.         $this->log('Extracted resources.');
  32.         
  33.         // Sample: apply transforms
  34.         $this->log('Applying transforms...');
  35.         $this->applyTransforms($rootPatharray(
  36.             'Name' => $name
  37.         ));
  38.         $this->log('Applied transforms.');
  39.     }
  40. }

Documentation generated on Sat, 03 Dec 2011 13:59:26 +0100 by phpDocumentor 1.4.3