Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added command to generate a roles file based on the vendor folder

  • Loading branch information...
commit 7884cefb165055a92d709de0fbfe679dcd2b2b5c 1 parent e6791fa
@denderello denderello authored
Showing with 45 additions and 0 deletions.
  1. +45 −0 Command/GenerateVendorRolesFileCommand.php
View
45 Command/GenerateVendorRolesFileCommand.php
@@ -0,0 +1,45 @@
+<?php
+/**
+ * WindowsAzure DistributionBundle
+ *
+ * LICENSE
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this package in the file LICENSE.txt.
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to kontakt@beberlei.de so I can send you a copy immediately.
+ */
+
+namespace WindowsAzure\DistributionBundle\Command;
+
+use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
+use Symfony\Component\Console\Input\InputArgument;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+
+use WindowsAzure\DistributionBundle\Deployment\VendorRoleFilesListener;
+
+/**
+ * Package a Symfony application for deployment.
+ *
+ * @author Dennis Benkert <dennis.benkert@sensiolabs.de>
+ */
+class GenerateVendorRolesFileCommand extends ContainerAwareCommand
+{
+ protected function configure()
+ {
+ $this
+ ->setName('windowsazure:generate:vendor-roles-file')
+ ->setDescription('Generates the roles file of your projects vendor directory for Windows Azure deployments')
+ ->addArgument('vendor-dir', InputArgument::REQUIRED, 'Your projects vendor dir')
+ ;
+ }
+
+ protected function execute(InputInterface $input, OutputInterface $output)
+ {
+ $output->writeln('<info>Generating Windows Azure role file</info>');
+
+ VendorRoleFilesListener::generateVendorRolesFile($input->getArgument('vendor-dir'));
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.