1 | <?php namespace Magestead\Helper; |
||
13 | class Options |
||
14 | { |
||
15 | const BOX_PREFIX = 'richdynamix/magestead-'; |
||
16 | |||
17 | protected $_app = 'magento2'; |
||
18 | protected $_phpVer = '56'; |
||
19 | protected $_os = 'centos65'; |
||
20 | protected $_server; |
||
21 | protected $_box; |
||
22 | protected $_m2Username; |
||
23 | protected $_m2Password; |
||
24 | protected $_ipAddress; |
||
25 | protected $_memorylimit; |
||
26 | protected $_cpus; |
||
27 | protected $_locale; |
||
28 | protected $_currency; |
||
29 | protected $_baseUrl; |
||
30 | protected $_repoUrl = ''; |
||
31 | protected $installSampleData = false; |
||
32 | |||
33 | /** |
||
34 | * Options constructor. |
||
35 | * @param $helper |
||
36 | * @param InputInterface $input |
||
37 | * @param OutputInterface $output |
||
38 | * @param $project |
||
39 | */ |
||
40 | public function __construct($helper, InputInterface $input, OutputInterface $output, $project) |
||
53 | /** |
||
54 | * @return array |
||
55 | */ |
||
56 | public function getAllOptions() |
||
76 | |||
77 | /** |
||
78 | * @param $helper |
||
79 | * @param InputInterface $input |
||
80 | * @param OutputInterface $output |
||
81 | */ |
||
82 | protected function setVagrantSettings($helper, InputInterface $input, OutputInterface $output) |
||
95 | |||
96 | /** |
||
97 | * @param $helper |
||
98 | * @param InputInterface $input |
||
99 | * @param OutputInterface $output |
||
100 | * @param $project |
||
101 | */ |
||
102 | protected function setApplicationSettings($helper, InputInterface $input, OutputInterface $output, $project) |
||
122 | |||
123 | /** |
||
124 | * @param $helper |
||
125 | * @param InputInterface $input |
||
126 | * @param OutputInterface $output |
||
127 | * @return boolean|integer |
||
128 | */ |
||
129 | protected function setMagento2Settings($helper, InputInterface $input, OutputInterface $output) |
||
138 | |||
139 | /** |
||
140 | * @param $helper |
||
141 | * @param InputInterface $input |
||
142 | * @param OutputInterface $output |
||
143 | */ |
||
144 | protected function setVersionControlSettings($helper, InputInterface $input, OutputInterface $output) |
||
153 | |||
154 | protected function installSampleData($helper, InputInterface $input, OutputInterface $output) |
||
159 | |||
160 | /** |
||
161 | * @param $helper |
||
162 | * @param InputInterface $input |
||
163 | * @param OutputInterface $output |
||
164 | */ |
||
165 | protected function askForAuth($helper, InputInterface $input, OutputInterface $output) |
||
173 | |||
174 | /** |
||
175 | * @param $helper |
||
176 | * @param InputInterface $input |
||
177 | * @param OutputInterface $output |
||
178 | * @return boolean|integer |
||
179 | */ |
||
180 | protected function verifyAuth($helper, InputInterface $input, OutputInterface $output) |
||
203 | |||
204 | /** |
||
205 | * @param $helper |
||
206 | * @param InputInterface $input |
||
207 | * @param OutputInterface $output |
||
208 | */ |
||
209 | protected function setPhp($helper, InputInterface $input, OutputInterface $output) |
||
219 | |||
220 | /** |
||
221 | * Set box name from concat user options |
||
222 | */ |
||
223 | protected function setVagrantBox() |
||
227 | |||
228 | /** |
||
229 | * @param $helper |
||
230 | * @param InputInterface $input |
||
231 | * @param OutputInterface $output |
||
232 | */ |
||
233 | protected function setServerConfig($helper, InputInterface $input, OutputInterface $output) |
||
240 | |||
241 | /** |
||
242 | * @param $helper |
||
243 | * @param InputInterface $input |
||
244 | * @param OutputInterface $output |
||
245 | */ |
||
246 | protected function setWebServer($helper, InputInterface $input, OutputInterface $output) |
||
256 | |||
257 | /** |
||
258 | * @param $helper |
||
259 | * @param InputInterface $input |
||
260 | * @param OutputInterface $output |
||
261 | */ |
||
262 | protected function setOperatingSystem($helper, InputInterface $input, OutputInterface $output) |
||
272 | } |
||
273 |