ramm 0.0.46 → 0.0.48

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/bun.sh CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  if ! command -v unzip &> /dev/null; then
4
4
  . /etc/os-release
5
+
6
+ if [[ "$ID_LIKE" == *"rhel"* ]]; then
7
+ sudo dnf install -y unzip
8
+ fi
5
9
 
6
10
  if [[ "$ID" == "ubuntu" ]]; then
7
11
  sudo apt update
package/dist/ramm.js CHANGED
@@ -18,27 +18,27 @@ var printBlock = (name) => {
18
18
 
19
19
  // src/context.ts
20
20
  class Context {
21
- name;
21
+ user;
22
22
  domain;
23
23
  userspace;
24
24
  sudo;
25
25
  sshKey;
26
26
  params = {};
27
27
  constructor({
28
- name,
28
+ user,
29
29
  address,
30
30
  userspace = false,
31
31
  sudo = false,
32
32
  sshKey
33
33
  }) {
34
- this.name = name;
34
+ this.user = user;
35
35
  this.domain = address;
36
36
  this.sudo = sudo;
37
37
  this.userspace = userspace;
38
38
  this.sshKey = sshKey;
39
39
  }
40
40
  getAddress() {
41
- return `${this.name}@${this.domain}`;
41
+ return `${this.user}@${this.domain}`;
42
42
  }
43
43
  }
44
44
 
@@ -76,7 +76,7 @@ var teeStderr = (read, prefix) => {
76
76
 
77
77
  // src/base/base.ts
78
78
  var defaultContext = new Context({
79
- name: "root",
79
+ user: "root",
80
80
  address: "0.0.0.0",
81
81
  userspace: false,
82
82
  sudo: false
@@ -1,12 +1,12 @@
1
1
  export declare class Context {
2
- name: string;
2
+ user: string;
3
3
  domain: string;
4
4
  userspace: boolean;
5
5
  sudo: boolean;
6
6
  sshKey?: string;
7
7
  params: Record<string, string>;
8
- constructor({ name, address, userspace, sudo, sshKey, }: {
9
- name: string;
8
+ constructor({ user, address, userspace, sudo, sshKey, }: {
9
+ user: string;
10
10
  address: string;
11
11
  userspace?: boolean;
12
12
  sudo?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ramm",
3
3
  "type": "module",
4
- "version": "0.0.46",
4
+ "version": "0.0.48",
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"