Skip to content

Commit 965855a

Browse files
committed
rename cleanStatic cache to be more relevant for both caches
1 parent 696a8d7 commit 965855a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ class ServerlessPythonRequirements {
100100
'install',
101101
],
102102
},
103-
cleanStatic: {
104-
usage: 'Removes all items in the static cache (if present)',
103+
cleanCache: {
104+
usage: 'Removes all items in the pip download/static cache (if present)',
105105
lifecycleEvents: [
106-
'cleanStatic',
106+
'cleanCache',
107107
],
108108
},
109109
},
@@ -131,7 +131,7 @@ class ServerlessPythonRequirements {
131131
return BbPromise.resolve();
132132
};
133133

134-
const cleanStatic = () => BbPromise.bind(this)
134+
const cleanCache = () => BbPromise.bind(this)
135135
.then(cleanupCache);
136136

137137

@@ -143,7 +143,7 @@ class ServerlessPythonRequirements {
143143
'after:deploy:function:packageFunction': after,
144144
'requirements:install:install': before,
145145
'requirements:clean:clean': clean,
146-
'requirements:cleanStatic:cleanStatic': cleanStatic,
146+
'requirements:cleanCache:cleanCache': cleanCache,
147147
};
148148
}
149149
}

0 commit comments

Comments
 (0)