Skip to content

Commit 0a1b260

Browse files
committed
Closes puphpet#1227; Squashed commit of the following:
commit 3497213 Author: Juan Treminio <[email protected]> Date: Mon Dec 1 20:20:00 2014 -0600 Removes reference to ManifestController; puphpet#1227 commit 22eb32c Author: Juan Treminio <[email protected]> Date: Mon Dec 1 20:19:39 2014 -0600 Moves Vagrantfile* up one level and removes extension slug; puphpet#1227 commit 4880dda Author: Juan Treminio <[email protected]> Date: Mon Dec 1 18:46:52 2014 -0600 Moves form templates up one level; Renamed Vagrantfile* templates Vagrantfile; puphpet#1227 commit ffa8460 Merge: 9c2be43 10ba171 Author: Juan Treminio <[email protected]> Date: Mon Dec 1 17:18:18 2014 -0600 Merge branch 'master' into 1227-simplify commit 9c2be43 Author: Juan Treminio <[email protected]> Date: Mon Dec 1 17:09:56 2014 -0600 Removes references to manifest controller from services and routes; puphpet#1227 commit 6086309 Author: Juan Treminio <[email protected]> Date: Sun Nov 30 15:09:11 2014 -0600 Removes .librarian and .tmp after running librarian; puphpet#1227 commit 2d1d5f5 Author: Juan Treminio <[email protected]> Date: Sun Nov 30 15:08:42 2014 -0600 Ignores .tmp from librarian; puphpet#1227 commit 0b9d8b7 Author: Juan Treminio <[email protected]> Date: Sun Nov 30 14:29:04 2014 -0600 Move all Puppet files into archive folder; puphpet#1227 commit 4214ccb Merge: d5f8f39 b56dffd Author: Juan Treminio <[email protected]> Date: Sun Nov 30 12:02:42 2014 -0600 Merge branch 'master' into 1227-simplify commit d5f8f39 Author: Juan Treminio <[email protected]> Date: Sun Nov 30 01:52:32 2014 -0600 Replaces all method in Configure classes with array; puphpet#1227 commit ff37eb6 Author: Juan Treminio <[email protected]> Date: Sun Nov 30 00:44:34 2014 -0600 Removes getSources() functionality Reads Puppetfile in project root and dumps contents into zip file's Puppetfile; Previous functionality was not taking into account versioning, and this solution is much cleaner and simpler to keep track of. puphpet#1227
1 parent 10ba171 commit 0a1b260

File tree

225 files changed

+283
-1477
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+283
-1477
lines changed

.gitignore

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
/bin/*
99
!/bin/librarian
1010
/composer.phar
11-
/Puppetfile.lock
12-
/.librarian
1311
/.tmp
14-
/modules
12+
/archive/puphpet/puppet/Puppetfile.lock
13+
/archive/puphpet/puppet/.librarian
14+
/archive/puphpet/puppet/.tmp
15+
/archive/puphpet/puppet/modules
File renamed without changes.

bin/librarian

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ set -e
44

55
__DIR__="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
66

7-
BASE_DIR="${__DIR__}/../"
7+
BASE_DIR="${__DIR__}/../archive/puphpet/puppet"
88
CWD=`pwd`
99

1010
cd `realpath $BASE_DIR`
1111

1212
librarian-puppet install --clean
13+
rm -rf .librarian
14+
rm -rf .tmp
1315

1416
rm -rf modules/git
1517
git clone https://github.com/puphpet/puppetlabs-git.git modules/git

src/Puphpet/Extension/ApacheBundle/Configure.php

+5-27
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,13 @@
44

55
use Puphpet\MainBundle\Extension;
66

7-
use Symfony\Component\DependencyInjection\ContainerInterface as Container;
8-
97
class Configure extends Extension\ExtensionAbstract
108
{
11-
protected $name = 'Apache';
12-
protected $slug = 'apache';
13-
protected $targetFile = 'puphpet/puppet/nodes/apache.pp';
9+
const DIR = __DIR__;
1410

15-
protected $sources = [
16-
'apache' => ":git => 'https://github.com/puphpet/puppetlabs-apache.git'",
11+
protected $conf = [
12+
'name' => 'Apache',
13+
'slug' => 'apache',
14+
'frontController' => 'puphpet.extension.apache.front_controller',
1715
];
18-
19-
/**
20-
* @param Container $container
21-
*/
22-
public function __construct(Container $container)
23-
{
24-
$this->dataLocation = __DIR__ . '/Resources/config';
25-
26-
parent::__construct($container);
27-
}
28-
29-
public function getFrontController()
30-
{
31-
return $this->container->get('puphpet.extension.apache.front_controller');
32-
}
33-
34-
public function getManifestController()
35-
{
36-
return $this->container->get('puphpet.extension.apache.manifest_controller');
37-
}
3816
}

src/Puphpet/Extension/ApacheBundle/Controller/FrontController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ class FrontController extends Controller implements Extension\ControllerInterfac
1010
{
1111
public function indexAction(array $data, $extra = '')
1212
{
13-
return $this->render('PuphpetExtensionApacheBundle:form:Apache.html.twig', [
13+
return $this->render('PuphpetExtensionApacheBundle::form.html.twig', [
1414
'apache' => $data,
1515
]);
1616
}
1717

1818
public function vhostAction()
1919
{
20-
return $this->render('PuphpetExtensionApacheBundle:form/sections:vhost.html.twig', [
20+
return $this->render('PuphpetExtensionApacheBundle:sections:vhost.html.twig', [
2121
'vhost' => $this->getData()['empty_vhost'],
2222
'available_engines' => $this->getData()['available_engines'],
2323
]);

src/Puphpet/Extension/ApacheBundle/Controller/ManifestController.php

-17
This file was deleted.

src/Puphpet/Extension/ApacheBundle/Resources/config/routing.yml

-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,3 @@ puphpet.extension.apache.homepage:
55
puphpet.extension.apache.vhost:
66
pattern: /vhost
77
defaults: { _controller: PuphpetExtensionApacheBundle:Front:vhost }
8-
9-
puphpet.extension.apache.manifest:
10-
pattern: /manifest
11-
defaults: { _controller: PuphpetExtensionApacheBundle:Manifest:index }

src/Puphpet/Extension/ApacheBundle/Resources/config/services.yml

-5
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,3 @@ services:
1010
class: Puphpet\Extension\ApacheBundle\Controller\FrontController
1111
calls:
1212
- [ setContainer, [@service_container] ]
13-
14-
puphpet.extension.apache.manifest_controller:
15-
class: Puphpet\Extension\ApacheBundle\Controller\ManifestController
16-
calls:
17-
- [ setContainer, [@service_container] ]

src/Puphpet/Extension/ApacheBundle/Resources/views/form/Apache.html.twig renamed to src/Puphpet/Extension/ApacheBundle/Resources/views/form.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</div>
5555

5656
{% for vhost in apache.vhosts %}
57-
{% include 'PuphpetExtensionApacheBundle:form/sections:vhost.html.twig' with {'vhost': vhost, 'available_engines': apache.available_engines} %}
57+
{% include 'PuphpetExtensionApacheBundle:sections:vhost.html.twig' with {'vhost': vhost, 'available_engines': apache.available_engines} %}
5858
{% endfor %}
5959

6060
<div class="row">

src/Puphpet/Extension/BeanstalkdBundle/Configure.php

+5-27
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,13 @@
44

55
use Puphpet\MainBundle\Extension;
66

7-
use Symfony\Component\DependencyInjection\ContainerInterface as Container;
8-
97
class Configure extends Extension\ExtensionAbstract
108
{
11-
protected $name = 'Beanstalkd';
12-
protected $slug = 'beanstalkd';
13-
protected $targetFile = 'puphpet/puppet/nodes/beanstalkd.pp';
9+
const DIR = __DIR__;
1410

15-
protected $sources = [
16-
'beanstalkd' => ":git => 'https://github.com/puphpet/puppet-beanstalkd.git'",
11+
protected $conf = [
12+
'name' => 'Beanstalkd',
13+
'slug' => 'beanstalkd',
14+
'frontController' => 'puphpet.extension.beanstalkd.front_controller',
1715
];
18-
19-
/**
20-
* @param Container $container
21-
*/
22-
public function __construct(Container $container)
23-
{
24-
$this->dataLocation = __DIR__ . '/Resources/config';
25-
26-
parent::__construct($container);
27-
}
28-
29-
public function getFrontController()
30-
{
31-
return $this->container->get('puphpet.extension.beanstalkd.front_controller');
32-
}
33-
34-
public function getManifestController()
35-
{
36-
return $this->container->get('puphpet.extension.beanstalkd.manifest_controller');
37-
}
3816
}

src/Puphpet/Extension/BeanstalkdBundle/Controller/FrontController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class FrontController extends Controller implements Extension\ControllerInterfac
1010
{
1111
public function indexAction(array $data, $extra = '')
1212
{
13-
return $this->render('PuphpetExtensionBeanstalkdBundle:form:Beanstalkd.html.twig', [
13+
return $this->render('PuphpetExtensionBeanstalkdBundle::form.html.twig', [
1414
'beanstalkd' => $data,
1515
]);
1616
}

src/Puphpet/Extension/BeanstalkdBundle/Controller/ManifestController.php

-17
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
puphpet.extension.beanstalkd.homepage:
22
pattern: /
33
defaults: { _controller: PuphpetExtensionBeanstalkdBundle:Front:index }
4-
5-
puphpet.extension.beanstalkd.manifest:
6-
pattern: /manifest
7-
defaults: { _controller: PuphpetExtensionBeanstalkdBundle:Manifest:index }

src/Puphpet/Extension/BeanstalkdBundle/Resources/config/services.yml

-5
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,3 @@ services:
1010
class: Puphpet\Extension\BeanstalkdBundle\Controller\FrontController
1111
calls:
1212
- [ setContainer, [@service_container] ]
13-
14-
puphpet.extension.beanstalkd.manifest_controller:
15-
class: Puphpet\Extension\BeanstalkdBundle\Controller\ManifestController
16-
calls:
17-
- [ setContainer, [@service_container] ]

src/Puphpet/Extension/DrushBundle/Configure.php

+5-31
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,13 @@
44

55
use Puphpet\MainBundle\Extension;
66

7-
use Symfony\Component\DependencyInjection\ContainerInterface as Container;
8-
97
class Configure extends Extension\ExtensionAbstract
108
{
11-
protected $name = 'Drush';
12-
protected $slug = 'drush';
13-
protected $targetFile = 'puphpet/puppet/nodes/drush.pp';
9+
const DIR = __DIR__;
1410

15-
protected $sources = [
16-
'drush' => ":git => 'https://github.com/puphpet/puppet-drush.git'",
17-
'php' => ":git => 'https://github.com/puphpet/puppet-php.git'",
18-
'composer' => ":git => 'https://github.com/puphpet/puppet-composer.git'",
19-
'puphpet' => ":git => 'https://github.com/puphpet/puppet-puphpet.git'",
20-
'puppi' => ":git => 'https://github.com/puphpet/puppi.git'",
11+
protected $conf = [
12+
'name' => 'Drush',
13+
'slug' => 'drush',
14+
'frontController' => 'puphpet.extension.drush.front_controller',
2115
];
22-
23-
/**
24-
* @param Container $container
25-
*/
26-
public function __construct(Container $container)
27-
{
28-
$this->dataLocation = __DIR__ . '/Resources/config';
29-
30-
parent::__construct($container);
31-
}
32-
33-
public function getFrontController()
34-
{
35-
return $this->container->get('puphpet.extension.drush.front_controller');
36-
}
37-
38-
public function getManifestController()
39-
{
40-
return $this->container->get('puphpet.extension.drush.manifest_controller');
41-
}
4216
}

src/Puphpet/Extension/DrushBundle/Controller/FrontController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class FrontController extends Controller implements Extension\ControllerInterfac
1010
{
1111
public function indexAction(array $data, $extra = '')
1212
{
13-
return $this->render('PuphpetExtensionDrushBundle:form:Drush.html.twig', [
13+
return $this->render('PuphpetExtensionDrushBundle::form.html.twig', [
1414
'drush' => $data,
1515
]);
1616
}

src/Puphpet/Extension/DrushBundle/Controller/ManifestController.php

-17
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
puphpet.extension.drush.homepage:
22
pattern: /
33
defaults: { _controller: PuphpetExtensionDrushBundle:Front:index }
4-
5-
puphpet.extension.drush.manifest:
6-
pattern: /manifest
7-
defaults: { _controller: PuphpetExtensionDrushBundle:Manifest:index }

src/Puphpet/Extension/DrushBundle/Resources/config/services.yml

-5
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,3 @@ services:
1010
class: Puphpet\Extension\DrushBundle\Controller\FrontController
1111
calls:
1212
- [ setContainer, [@service_container] ]
13-
14-
puphpet.extension.drush.manifest_controller:
15-
class: Puphpet\Extension\DrushBundle\Controller\ManifestController
16-
calls:
17-
- [ setContainer, [@service_container] ]

src/Puphpet/Extension/ElasticSearchBundle/Configure.php

+5-27
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,13 @@
44

55
use Puphpet\MainBundle\Extension;
66

7-
use Symfony\Component\DependencyInjection\ContainerInterface as Container;
8-
97
class Configure extends Extension\ExtensionAbstract
108
{
11-
protected $name = 'Elastic Search';
12-
protected $slug = 'elastic_search';
13-
protected $targetFile = 'puphpet/puppet/nodes/elasticsearch.pp';
9+
const DIR = __DIR__;
1410

15-
protected $sources = [
16-
'elasticsearch' => ":git => 'https://github.com/puphpet/puppet-elasticsearch.git'"
11+
protected $conf = [
12+
'name' => 'Elastic Search',
13+
'slug' => 'elastic_search',
14+
'frontController' => 'puphpet.extension.elastic_search.front_controller',
1715
];
18-
19-
/**
20-
* @param Container $container
21-
*/
22-
public function __construct(Container $container)
23-
{
24-
$this->dataLocation = __DIR__ . '/Resources/config';
25-
26-
parent::__construct($container);
27-
}
28-
29-
public function getFrontController()
30-
{
31-
return $this->container->get('puphpet.extension.elastic_search.front_controller');
32-
}
33-
34-
public function getManifestController()
35-
{
36-
return $this->container->get('puphpet.extension.elastic_search.manifest_controller');
37-
}
3816
}

src/Puphpet/Extension/ElasticSearchBundle/Controller/FrontController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class FrontController extends Controller implements Extension\ControllerInterfac
1010
{
1111
public function indexAction(array $data, $extra = '')
1212
{
13-
return $this->render('PuphpetExtensionElasticSearchBundle:form:ElasticSearch.html.twig', [
13+
return $this->render('PuphpetExtensionElasticSearchBundle::form.html.twig', [
1414
'elastic_search' => $data,
1515
]);
1616
}

src/Puphpet/Extension/ElasticSearchBundle/Controller/ManifestController.php

-17
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
puphpet.extension.elastic_search.homepage:
22
pattern: /
33
defaults: { _controller: PuphpetExtensionElasticSearchBundle:Front:index }
4-
5-
puphpet.extension.elastic_search.manifest:
6-
pattern: /manifest
7-
defaults: { _controller: PuphpetExtensionElasticSearchBundle:Manifest:index }

src/Puphpet/Extension/ElasticSearchBundle/Resources/config/services.yml

-5
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,3 @@ services:
1010
class: Puphpet\Extension\ElasticSearchBundle\Controller\FrontController
1111
calls:
1212
- [ setContainer, [@service_container] ]
13-
14-
puphpet.extension.elastic_search.manifest_controller:
15-
class: Puphpet\Extension\ElasticSearchBundle\Controller\ManifestController
16-
calls:
17-
- [ setContainer, [@service_container] ]

0 commit comments

Comments
 (0)