Skip to content

Commit cdbfc7d

Browse files
committed
refactor: Adapt v3 log writing interfaces
1 parent ea38234 commit cdbfc7d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@ class ServerlessPythonRequirements {
109109
* The plugin constructor
110110
* @param {Object} serverless
111111
* @param {Object} options
112+
* @param {Object} v3Utils
112113
* @return {undefined}
113114
*/
114-
constructor(serverless) {
115+
constructor(serverless, cliOptions, v3Utils) {
115116
this.serverless = serverless;
116117
this.servicePath = this.serverless.config.servicePath;
117118
this.warningLogged = false;
@@ -127,6 +128,13 @@ class ServerlessPythonRequirements {
127128
},
128129
});
129130
}
131+
132+
if (v3Utils) {
133+
this.log = v3Utils.log;
134+
this.progress = v3Utils.progress;
135+
this.writeText = v3Utils.writeText;
136+
};
137+
130138
this.commands = {
131139
requirements: {
132140
commands: {

0 commit comments

Comments
 (0)