INTO-CPS-Association/DTaaS

View on GitHub
servers/execution/runner/src/runner-factory.service.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Injectable } from '@nestjs/common';
import Runner from './interfaces/runner.interface.js';
import ExecaRunner from './execa-runner.js';

@Injectable()
export default class RunnerFactory {
  static create(command: string): Runner {
    return new ExecaRunner(command);
  }
}