mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 06:07:57 +00:00
Rename ExtLinuxFile interface to match the codebase
This commit is contained in:
parent
1e48d02781
commit
51b5cff7b0
@ -12,7 +12,7 @@ export interface ConfigOptions {
|
||||
[key: string]: string | string[];
|
||||
}
|
||||
|
||||
interface ExtLinuxFile {
|
||||
interface ExtlinuxFile {
|
||||
labels: {
|
||||
[labelName: string]: {
|
||||
[directive: string]: string;
|
||||
@ -304,9 +304,9 @@ export class ExtlinuxConfigBackend extends DeviceConfigBackend {
|
||||
return ExtlinuxConfigBackend.bootConfigVarPrefix + configName;
|
||||
}
|
||||
|
||||
private static parseExtlinuxFile(confStr: string): ExtLinuxFile {
|
||||
private static parseExtlinuxFile(confStr: string): ExtlinuxFile {
|
||||
|
||||
const file: ExtLinuxFile = {
|
||||
const file: ExtlinuxFile = {
|
||||
globals: { },
|
||||
labels: { },
|
||||
};
|
||||
@ -354,7 +354,7 @@ export class ExtlinuxConfigBackend extends DeviceConfigBackend {
|
||||
return file;
|
||||
}
|
||||
|
||||
private static extlinuxFileToString(file: ExtLinuxFile): string {
|
||||
private static extlinuxFileToString(file: ExtlinuxFile): string {
|
||||
let ret = '';
|
||||
_.each(file.globals, (value, directive) => {
|
||||
ret += `${directive} ${value}\n`;
|
||||
|
Loading…
Reference in New Issue
Block a user