1 | <?php |
||
25 | class JoliCiBuildStrategy implements BuildStrategyInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var string Base path for build |
||
29 | */ |
||
30 | private $buildPath; |
||
31 | |||
32 | /** |
||
33 | * @var Filesystem Filesystem service |
||
34 | */ |
||
35 | private $filesystem; |
||
36 | |||
37 | /** |
||
38 | * @var Naming Use to name the image created |
||
39 | */ |
||
40 | private $naming; |
||
41 | |||
42 | /** |
||
43 | * @param string $buildPath Directory where build must be created |
||
44 | * @param Naming $naming Naming service |
||
45 | * @param Filesystem $filesystem Filesystem service |
||
46 | */ |
||
47 | public function __construct($buildPath, Naming $naming, Filesystem $filesystem) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getJobs($directory) |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function prepareJob(Job $job) |
||
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | public function getName() |
||
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | public function supportProject($directory) |
||
116 | |||
117 | /** |
||
118 | * Return the jolici strategy directory where there must be builds |
||
119 | * |
||
120 | * @param string $projectPath |
||
121 | * @return string |
||
122 | */ |
||
123 | protected function getJoliCiStrategyDirectory($projectPath) |
||
127 | } |
||
128 |