ramm 0.0.39 → 0.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ramm.js CHANGED
@@ -242,7 +242,7 @@ var checkSystemdService = async (context, serviceName) => {
242
242
  const { spawnResult } = await execCommandMayError(formatUserspace(context, `systemctl is-active ${serviceName}`));
243
243
  return spawnResult.exitCode === 0;
244
244
  };
245
- var createSystemdServiceByContent = async (context, serviceName, content) => {
245
+ var createSystemdServiceByContent = async (serviceName, content, context = defaultContext) => {
246
246
  printFunction(`createSystemdServiceByContent ${serviceName}`);
247
247
  const pathToSeviceTarget = getSystemdPathToService(context, serviceName);
248
248
  await writeFileFull(pathToSeviceTarget, content);
@@ -3,5 +3,5 @@ export declare const getSysyemdServiceName: (name: string) => string;
3
3
  export declare const stopSystemdService: (constext: Context, name: string) => Promise<void>;
4
4
  export declare const restartSystemdService: (name: string, constext?: Context) => Promise<void>;
5
5
  export declare const checkSystemdService: (context: Context, serviceName: string) => Promise<boolean>;
6
- export declare const createSystemdServiceByContent: (context: Context, serviceName: string, content: string) => Promise<void>;
6
+ export declare const createSystemdServiceByContent: (serviceName: string, content: string, context?: Context) => Promise<void>;
7
7
  export declare const createSystemdService: (context: Context, serviceName: string, pathToServiceFile: string) => Promise<void>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ramm",
3
3
  "type": "module",
4
- "version": "0.0.39",
4
+ "version": "0.0.40",
5
5
  "scripts": {
6
6
  "build": "bun build ./src/ramm.ts --target bun --outdir ./dist && cp ./src/bun.sh ./dist/bun.sh",
7
7
  "types": "tsc --project tsconfig.types.json"