INNER CODE UNIT · JavaScript

AbstractService

agutoli/serverless-layers · src/AbstractService.js:4

class AbstractService {
  constructor(plugin) {
    this.plugin = plugin;

    this.functionName = plugin.currentLayerName;
    this.stackName = plugin.getStackName();
    this.layerName = plugin.getLayerName();
    this.bucketName = plugin.getBucketName();
    this.bucketEncryption = plugin.getBucketEncryptiom();
    this.provider = this.plugin.provider;

    this.dependenceFilename = path.join(plugin.getBucketLayersPath(), this.plugin.settings.dependenciesPath);
    this.zipFileKeyName = `${path.join(this.plugin.getBucketLayersPath(), this.layerName)}.zip`;

    if (/^win/.test(process.platform)) {
      this.zipFileKeyName = this.zipFileKeyName.replace(/\\/g, '/');
      this.dependenceFilename = this.dependenceFilename.replace(/\\/g, '/');
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…