File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed
app/code/Magento/Deploy/Model Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,9 @@ public function deploy()
108
108
{
109
109
if ($ this ->idDryRun ) {
110
110
$ this ->output ->writeln ('Dry run. Nothing will be recorded to the target directory. ' );
111
+ } else {
112
+ $ version = (new \DateTime ())->getTimestamp ();
113
+ $ this ->versionStorage ->save ($ version );
111
114
}
112
115
113
116
/** @var DeployStrategyProvider $strategyProvider */
@@ -133,7 +136,9 @@ public function deploy()
133
136
}
134
137
135
138
$ this ->minifyTemplates ();
136
- $ this ->saveDeployedVersion ();
139
+ if (!$ this ->idDryRun ) {
140
+ $ this ->output ->writeln ("New version of deployed files: {$ version }" );
141
+ }
137
142
138
143
return $ result ;
139
144
}
@@ -197,17 +202,4 @@ private function getProcessesAmount()
197
202
{
198
203
return isset ($ this ->options [Options::JOBS_AMOUNT ]) ? (int )$ this ->options [Options::JOBS_AMOUNT ] : 0 ;
199
204
}
200
-
201
- /**
202
- * Save version of deployed files
203
- * @return void
204
- */
205
- private function saveDeployedVersion ()
206
- {
207
- if (!$ this ->idDryRun ) {
208
- $ version = (new \DateTime ())->getTimestamp ();
209
- $ this ->output ->writeln ("New version of deployed files: {$ version }" );
210
- $ this ->versionStorage ->save ($ version );
211
- }
212
- }
213
205
}
You can’t perform that action at this time.
0 commit comments