Skip to content

Commit dd83e1d

Browse files
build3.0.0
* build: 3.0.0
1 parent a9beff6 commit dd83e1d

File tree

8 files changed

+347
-159
lines changed

8 files changed

+347
-159
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"global": true
1010
},
1111
"parserOptions": {
12-
"ecmaVersion": 2018,
12+
"ecmaVersion": 2020,
1313
"sourceType": "module",
1414
"ecmaFeatures": {
1515
"jsx": true

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Coderty S.L.
3+
Copyright (c) 2021 Runnerty Tech S.L.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,27 @@
1313
# Shell executor for [Runnerty]:
1414

1515
### Installation:
16+
17+
Through NPM
18+
1619
```bash
1720
npm i @runnerty/executor-shell
1821
```
1922

23+
You can also add modules to your project with [runnerty-cli]
24+
25+
```bash
26+
npx runnerty-cli add @runnerty/executor-shell
27+
```
28+
29+
This command installs the module in your project, adds example configuration in your `config.json` and creates an example plan of use.
30+
31+
If you have installed [runnerty-cli] globally you can include the module with this command:
32+
33+
```bash
34+
rty add @runnerty/executor-shell
35+
```
36+
2037
### Configuration sample:
2138
Add in [config.json]:
2239
#### Local
@@ -96,4 +113,5 @@ It is possible to access the values by [GETVALUE] function:
96113
[david-badge-url]: https://david-dm.org/runnerty/executor-shell
97114
[GETVALUE]: http://docs.runnerty.io/functions/
98115
[config.json]: http://docs.runnerty.io/config/
99-
[plan.json]: http://docs.runnerty.io/plan/
116+
[plan.json]: http://docs.runnerty.io/plan/
117+
[runnerty-cli]: https://www.npmjs.com/package/runnerty-cli

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const spawn = require('child_process').spawn;
44
const spawnSsh = require('ssh2').Client;
55
const fs = require('fs');
66

7-
const Execution = global.ExecutionClass;
7+
const Executor = require('@runnerty/module-core').Executor;
88

9-
class shellExecutor extends Execution {
9+
class shellExecutor extends Executor {
1010
constructor(process) {
1111
super(process);
1212
this.debug = false;

0 commit comments

Comments
 (0)