azukiapp/azk

View on GitHub
src/generator/suggestions/ruby-2.1.js

Summary

Maintainability
C
7 hrs
Test Coverage
import { Suggestion as DefaultSuggestion } from 'azk/generator/suggestions/ruby';

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

    var name    = 'ruby';
    var version = '2.1';
    // 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}` },
    });
  }
}