Skip to content

Commit 1ac78cb

Browse files
committed
Separates available_data from data/default keys
1 parent 32a8425 commit 1ac78cb

File tree

53 files changed

+207
-195
lines changed

Some content is hidden

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

53 files changed

+207
-195
lines changed

src/Puphpet/MainBundle/Extension/Manager.php

+15-5
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,12 @@ public function addExtension($name)
4040
$available = is_array($available) ? $available : [];
4141

4242
$mergedData = array_replace_recursive($data, $defaults);
43-
$mergedData = array_merge($mergedData, $available);
44-
$data = array_merge($data, $available);
4543

4644
$this->extensions[$name] = [
47-
'defaults' => $defaults,
48-
'data' => $data,
49-
'merged' => $mergedData,
45+
'available' => $available,
46+
'data' => $data,
47+
'defaults' => $defaults,
48+
'merged' => $mergedData,
5049
];
5150

5251
return $this;
@@ -82,6 +81,17 @@ public function getExtensionData($name)
8281
return $this->extensions[$name]['data'];
8382
}
8483

84+
/**
85+
* @param string $name
86+
* @return array
87+
*/
88+
public function getExtensionAvailableData($name)
89+
{
90+
$name = str_replace('-', '_', $name);
91+
92+
return $this->extensions[$name]['available'];
93+
}
94+
8595
/**
8696
* @param array $data
8797
* @return string

src/Puphpet/MainBundle/Resources/config/apache/available.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ empty_files_match:
3333
sethandler: 'proxy:fcgi://127.0.0.1:9000'
3434
custom_fragment: ''
3535

36-
available_modules:
36+
modules:
3737
- cache
3838
- cgid
3939
- dav

src/Puphpet/MainBundle/Resources/config/drush/available.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
available_versions:
1+
versions:
22
- 7.0.0-alpha3
33
- 7.0.0-alpha2
44
- 7.0.0-alpha1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
available_versions:
1+
versions:
22
- 1.4.1
33
- 1.3.6
44
- 1.2.3

src/Puphpet/MainBundle/Resources/config/hhvm/available.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
available_ini:
1+
ini:
22
display_errors:
33
error_reporting:
44

5-
available_timezones:
5+
timezones:
66
Africa:
77
- Africa/Abidjan
88
- Africa/Accra
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
available_settings:

src/Puphpet/MainBundle/Resources/config/mysql/available.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
available_versions:
1+
versions:
22
- 5.6
33
- 5.5
44

5-
available_privileges:
5+
privileges:
66
"Give all":
77
- ALL
88
"or, Give some":

src/Puphpet/MainBundle/Resources/config/php/available.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
available_modules:
1+
modules:
22
php:
33
- bcmath
44
- cgi
@@ -603,7 +603,7 @@ available_modules:
603603
- xmlwriter
604604
- xslcache
605605

606-
available_ini:
606+
ini:
607607
allow_url_fopen:
608608
allow_url_include:
609609
always_populate_raw_post_data:
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
available_privileges:
1+
privileges:
22
- ALL
33
- CREATE
44
- CONNECT
55
- TEMPORARY
66

7+
versions:
8+
- "9.3"
9+
- "9.2"
10+
- "9.1"
11+
- "8.4"
12+
713
empty_user:
814
username: ~
915
password: ~
@@ -17,9 +23,3 @@ empty_grant:
1723
privilege: ~
1824
db: ~
1925
role: ~
20-
21-
available_versions:
22-
- "9.3"
23-
- "9.2"
24-
- "9.1"
25-
- "8.4"

src/Puphpet/MainBundle/Resources/config/python/available.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
available_versions:
1+
versions:
22
- 2.6.9
33
- 2.7.6
44
- 3.1.5

src/Puphpet/MainBundle/Resources/config/ruby/available.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
available_versions:
1+
versions:
22
- 1.8.6-p420
33
- 1.8.7-p374
44
- 1.9.1-p431

src/Puphpet/MainBundle/Resources/config/solr/available.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
available_versions:
1+
versions:
22
- 4.10.2
33
- 4.10.1
44
- 4.10.0
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
groups: []
2-
3-
users: []

src/Puphpet/MainBundle/Resources/config/vagrantfile-aws/available.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
empty_synced_folder:
2-
source: ~
3-
target: ~
4-
id: ~
5-
nfs: false
6-
7-
available_images:
1+
images:
82
# US East (Northern Virginia) Region
93
us-east-1:
104
-
@@ -173,7 +167,7 @@ available_images:
173167
- 5.4
174168
- HHVM
175169

176-
available_instance_types:
170+
instance_types:
177171
t1.micro: up to 2 ECUs, 1 vCPUs, 0.613 GiB memory, EBS only
178172
m1.small: 1 ECUs, 1 vCPUs, 1.7 GiB memory, 1 x 160 GiB Storage Capacity
179173
m1.medium: 2 ECUs, 1 vCPUs, 3.7 GiB memory, 1 x 410 GiB Storage Capacity
@@ -187,7 +181,7 @@ available_instance_types:
187181
c1.medium: 5 ECUs, 2 vCPUs, 1.7 GiB memory, 1 x 350 GiB Storage Capacity
188182
c1.xlarge: 20 ECUs, 8 vCPUs, 7 GiB memory, 4 x 420 GiB Storage Capacity
189183

190-
available_regions:
184+
regions:
191185
ap-northeast-1: Asia Pacific (Tokyo) Region
192186
ap-southeast-1: Asia Pacific (Singapore) Region
193187
ap-southeast-2: Asia Pacific (Sydney) Region
@@ -196,3 +190,9 @@ available_regions:
196190
us-east-1: US East (Northern Virginia) Region
197191
us-west-1: US West (Northern California) Region
198192
us-west-2: US West (Oregon) Region
193+
194+
empty_synced_folder:
195+
source: ~
196+
target: ~
197+
id: ~
198+
nfs: false

src/Puphpet/MainBundle/Resources/config/vagrantfile-digitalocean/available.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
empty_synced_folder:
2-
source: ~
3-
target: ~
4-
id: ~
5-
nfs: false
6-
7-
available_images:
1+
images:
82
-
93
image: centos-7-0-x64
104
long_name: CentOS 7 x64
@@ -36,7 +30,7 @@ available_images:
3630
- 5.4
3731
- HHVM
3832

39-
available_sizes:
33+
sizes:
4034
512mb: 512MB / 1 CPU / 20GB SSD DISK / 1TB TRANSFER
4135
1gb: 1GB / 1 CPU / 30GB SSD DISK / 2TB TRANSFER
4236
2gb: 2GB / 2 CPUS / 40GB SSD DISK / 3TB TRANSFER
@@ -47,7 +41,7 @@ available_sizes:
4741
48gb: 48GB / 16 CPUS / 480GB SSD DISK / 8TB TRANSFER
4842
64gb: 64GB / 20 CPUS / 640GB SSD DISK / 9TB TRANSFER
4943

50-
available_regions:
44+
regions:
5145
nyc1: New York 1
5246
nyc2: New York 2
5347
nyc3: New York 3
@@ -57,3 +51,9 @@ available_regions:
5751
ams3: Amsterdam 3
5852
sgp1: Singapore 1
5953
lon1: London 1
54+
55+
empty_synced_folder:
56+
source: ~
57+
target: ~
58+
id: ~
59+
nfs: false

src/Puphpet/MainBundle/Resources/config/vagrantfile-gce/available.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
empty_synced_folder:
2-
source: ~
3-
target: ~
4-
id: ~
5-
nfs: false
6-
7-
available_images:
1+
images:
82
-
93
image: debian-7-wheezy-v20141205
104
long_name: Debian Wheezy 7 x64
@@ -28,7 +22,7 @@ available_images:
2822
- 5.4
2923
- HHVM
3024

31-
available_machine_types:
25+
machine_types:
3226
f1-micro: 1 vCPU, 0.6 GB memory
3327
g1-small: 1 vCPU, 1.7 GB memory
3428
n1-standard-1: 1 vCPU, 3.75 GB memory
@@ -45,7 +39,7 @@ available_machine_types:
4539
n1-highcpu-8: 8 vCPU, 7.2 GB memory
4640
n1-highcpu-16: 16 vCPU, 14.4 GB memory
4741

48-
available_zones:
42+
zones:
4943
asia-east1-a: asia-east1-a
5044
asia-east1-b: asia-east1-b
5145
asia-east1-c: asia-east1-c
@@ -55,3 +49,9 @@ available_zones:
5549
us-central1-a: us-central1-a
5650
us-central1-b: us-central1-b
5751
us-central1-f: us-central1-f
52+
53+
empty_synced_folder:
54+
source: ~
55+
target: ~
56+
id: ~
57+
nfs: false
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
empty_synced_folder:
2-
source: ~
3-
target: ~
4-
id: ~
5-
nfs: false
6-
7-
available_images:
1+
images:
82
# Zone 3 France Direct Routing (Z03-R0-IKDC01-FR)
93
'Zone 3 France Direct Routing (Z03-R0-IKDC01-FR)':
104
-
@@ -18,13 +12,19 @@ available_images:
1812
- 5.5
1913
- HHVM
2014

21-
available_service_offering_names:
15+
service_offering_names:
2216
t1.pico: 0.5 vCPUs, 0.512 GiB memory, 50 GiB
2317
t1.micro: 1 vCPUs, 1 GiB memory, 100 GiB
2418
m1.small: 1 vCPUs, 1.7 GiB memory, 100 GiB
2519
m1.medium: 2 vCPUs, 3.75 GiB memory, 100 GiB
2620
m1.large: 4 vCPUs, 7.5 GiB memory, 100 GiB
2721
m1.extralarge: 8 vCPUs, 15 GiB memory, 100 GiB
2822

29-
available_zone_names:
23+
zone_names:
3024
'Zone 3 France Direct Routing (Z03-R0-IKDC01-FR)': 'Zone 3 France Direct Routing (Z03-R0-IKDC01-FR)'
25+
26+
empty_synced_folder:
27+
source: ~
28+
target: ~
29+
id: ~
30+
nfs: false

src/Puphpet/MainBundle/Resources/config/vagrantfile-linode/available.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
empty_synced_folder:
2-
source: ~
3-
target: ~
4-
id: ~
5-
nfs: false
6-
7-
available_distributions:
1+
distributions:
82
-
93
distribution: Debian 7
104
long_name: Debian Wheezy 7.x x64
@@ -21,7 +15,7 @@ available_distributions:
2115
- 5.5
2216
- HHVM
2317

24-
available_plans:
18+
plans:
2519
1024: 1GB / 1 CPU / 24GB SSD DISK / 2TB TRANSFER
2620
2048: 2GB / 2 CPU / 48GB SSD DISK / 3TB TRANSFER
2721
4096: 4GB / 4 CPUS / 96GB SSD DISK / 4TB TRANSFER
@@ -32,10 +26,16 @@ available_plans:
3226
65536: 64GB / 20 CPUS / 1536GB SSD DISK / 20TB TRANSFER
3327
98304: 96GB / 20 CPUS / 1920GB SSD DISK / 20TB TRANSFER
3428

35-
available_datacenters:
29+
datacenters:
3630
newark: Newark
3731
atlanta: Atlanta
3832
fremont: Fremont
3933
dallas: Dallas
4034
london: London
4135
tokyo: Tokyo
36+
37+
empty_synced_folder:
38+
source: ~
39+
target: ~
40+
id: ~
41+
nfs: false

src/Puphpet/MainBundle/Resources/config/vagrantfile-local/available.yml

+23-23
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,4 @@
1-
empty_synced_folder:
2-
source: ~
3-
target: ~
4-
id: vagrant-root
5-
sync_type: default
6-
owner: 'www-data'
7-
group: 'www-data'
8-
rsync:
9-
args:
10-
- '--verbose'
11-
- '--archive'
12-
- '-z'
13-
exclude:
14-
- '.vagrant/'
15-
- '.git/'
16-
auto: true
17-
18-
empty_forwarded_port:
19-
host: ~
20-
guest: ~
21-
22-
available_providers:
1+
providers:
232
-
243
name: virtualbox
254
long_name: VirtualBox
@@ -63,7 +42,7 @@ available_providers:
6342
performance: 3
6443
default_ip: 192.168.58.101
6544

66-
available_boxes:
45+
boxes:
6746
-
6847
url: puphpet/centos65-x64
6948
os: centos
@@ -111,3 +90,24 @@ available_boxes:
11190
- 5.5
11291
- 5.4
11392
- HHVM
93+
94+
empty_synced_folder:
95+
source: ~
96+
target: ~
97+
id: vagrant-root
98+
sync_type: default
99+
owner: 'www-data'
100+
group: 'www-data'
101+
rsync:
102+
args:
103+
- '--verbose'
104+
- '--archive'
105+
- '-z'
106+
exclude:
107+
- '.vagrant/'
108+
- '.git/'
109+
auto: true
110+
111+
empty_forwarded_port:
112+
host: ~
113+
guest: ~

0 commit comments

Comments
 (0)