Permalink
Browse files

Add support for Chef cookbooks and roles

  • Loading branch information...
1 parent 033679a commit d09e89259323ac76c88bdd5e9be7c23cf426621b @mre mre committed Jul 21, 2014
View
@@ -37,6 +37,7 @@ is not needed to install packages with these frameworks:
| AnnotateCms | `annotatecms-module`<br>`annotatecms-component`<br>`annotatecms-service`
| Bitrix | `bitrix-module`<br>`bitrix-component`<br>`bitrix-theme`
| CakePHP 2+ | **`cakephp-plugin`**
+| Chef | `chef-recipe`<br>`chef-role`
| CodeIgniter | `codeigniter-library`<br>`codeigniter-third-party`<br>`codeigniter-module`
| concrete5 | `concrete5-block`<br>`concrete5-package`<br>`concrete5-theme`<br>`concrete5-update`
| Craft | `craft-plugin`
View
@@ -9,6 +9,7 @@
"AnnotateCms",
"Bitrix",
"CakePHP",
+ "Chef",
"CodeIgniter",
"concrete5",
"Craft",
@@ -0,0 +1,11 @@
+<?php
+namespace Composer\Installers;
+
+class ChefInstaller extends BaseInstaller
+{
+ protected $locations = array(
+ 'cookbook' => 'Chef/{$vendor}/{$name}/',
+ 'role' => 'Chef/roles/{$name}/',
+ );
+}
+
@@ -17,6 +17,7 @@ class Installer extends LibraryInstaller
'annotatecms' => 'AnnotateCmsInstaller',
'bitrix' => 'BitrixInstaller',
'cakephp' => 'CakePHPInstaller',
+ 'chef' => 'ChefInstaller',
'codeigniter' => 'CodeIgniterInstaller',
'concrete5' => 'Concrete5Installer',
'craft' => 'CraftInstaller',
@@ -95,6 +95,8 @@ public function dataForTestSupport()
array('cakephp-', false),
array('cakephp-app', false),
array('cakephp-plugin', true),
+ array('chef-cookbook', true),
+ array('chef-role', true),
array('codeigniter-app', false),
array('codeigniter-library', true),
array('codeigniter-third-party', true),
@@ -189,6 +191,8 @@ public function dataForTestInstallPath()
array('bitrix-component', 'local/components/my_component/', 'author/my_component'),
array('bitrix-theme', 'local/templates/my_theme/', 'author/my_theme'),
array('cakephp-plugin', 'Plugin/Ftp/', 'shama/ftp'),
+ array('chef-cookbook', 'Chef/mre/my_cookbook/', 'mre/my_cookbook'),
+ array('chef-role', 'Chef/roles/my_role/', 'mre/my_role'),
array('codeigniter-library', 'application/libraries/my_package/', 'shama/my_package'),
array('codeigniter-module', 'application/modules/my_package/', 'shama/my_package'),
array('concrete5-block', 'blocks/concrete5_block/', 'remo/concrete5_block'),

0 comments on commit d09e892

Please sign in to comment.