azukiapp/azk

View on GitHub
src/generator/suggestions/python-2.7.js

Summary

Maintainability
B
6 hrs
Test Coverage
import { Suggestion as DefaultSuggestion } from 'azk/generator/suggestions/python';

export class Suggestion extends DefaultSuggestion {
  constructor(...args) {
    super(...args);

    var name    = 'python';
    var version = '2.7';
    // Readable name for this suggestion
    this.name = `${name}-${version}`;

    // Which rules they suggestion is valid
    this.ruleNamesList = [`${name}-${version}`];

    // Initial Azkfile.js suggestion
    this.suggestion = this.extend(this.suggestion, {
      __type : `${name} ${version}`,
      image  : { docker: `azukiapp/${name}:${version}` },
    });
  }
}