Rename ExtLinuxFile interface to match the codebase

This commit is contained in:
Cameron Diver 2018-06-06 14:09:54 +01:00
parent 1e48d02781
commit 51b5cff7b0
No known key found for this signature in database
GPG Key ID: 69264F9C923F55C1

View File

@ -12,7 +12,7 @@ export interface ConfigOptions {
[key: string]: string | string[]; [key: string]: string | string[];
} }
interface ExtLinuxFile { interface ExtlinuxFile {
labels: { labels: {
[labelName: string]: { [labelName: string]: {
[directive: string]: string; [directive: string]: string;
@ -304,9 +304,9 @@ export class ExtlinuxConfigBackend extends DeviceConfigBackend {
return ExtlinuxConfigBackend.bootConfigVarPrefix + configName; return ExtlinuxConfigBackend.bootConfigVarPrefix + configName;
} }
private static parseExtlinuxFile(confStr: string): ExtLinuxFile { private static parseExtlinuxFile(confStr: string): ExtlinuxFile {
const file: ExtLinuxFile = { const file: ExtlinuxFile = {
globals: { }, globals: { },
labels: { }, labels: { },
}; };
@ -354,7 +354,7 @@ export class ExtlinuxConfigBackend extends DeviceConfigBackend {
return file; return file;
} }
private static extlinuxFileToString(file: ExtLinuxFile): string { private static extlinuxFileToString(file: ExtlinuxFile): string {
let ret = ''; let ret = '';
_.each(file.globals, (value, directive) => { _.each(file.globals, (value, directive) => {
ret += `${directive} ${value}\n`; ret += `${directive} ${value}\n`;