Skip to content

Commit

Permalink
build: 3.0.0
Browse files Browse the repository at this point in the history
* build: 3.0.0
  • Loading branch information
CarlosCarmona authored Jan 8, 2021
1 parent 5b71f13 commit 563ba52
Show file tree
Hide file tree
Showing 7 changed files with 249 additions and 77 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Runnerty Tech S.L.
Copyright (c) 2021 Runnerty Tech S.L.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
25 changes: 21 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,26 @@
# Check-online-service executor for [Runnerty]:

### Installation:
Through NPM

```bash
npm i @runnerty/executor-check-online-service
```

You can also add modules to your project with [runnerty-cli]

```bash
npx runnerty-cli add @runnerty/executor-check-online-service
```

This command installs the module in your project, adds example configuration in your `config.json` and creates an example plan of use.

If you have installed [runnerty-cli] globally you can include the module with this command:

```bash
rty add @runnerty/executor-check-online-service
```

### Configuration sample:
Add in [config.json]:
```json
Expand All @@ -31,8 +47,8 @@ Add in [plan.json]:
```json
{
"id":"check_online_service_default",
"hostname": "http://www.google.es",
"check_contains": "Voy a tener suerte"
"hostname": "http://www.google.com/en",
"check_contains": "I'm Feeling Lucky"
}
```

Expand All @@ -41,8 +57,8 @@ Add in [plan.json]:
```json
{
"id":"check_online_service_default",
"hostname": "http://www.google.es",
"check_contains": "Voy a tener suerte",
"hostname": "http://www.google.com/en",
"check_contains": "I'm Feeling Lucky",
"method": "GET",
"auth":{
"user": "user",
Expand All @@ -66,3 +82,4 @@ Add in [plan.json]:
[david-badge-url]: https://david-dm.org/runnerty/executor-check-online-service
[config.json]: http://docs.runnerty.io/config/
[plan.json]: http://docs.runnerty.io/plan/
[runnerty-cli]: https://www.npmjs.com/package/runnerty-cli
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';

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

class checkOnlineService extends Execution {
class checkOnlineService extends Executor {
constructor(process) {
super(process);
}
Expand Down
Loading

0 comments on commit 563ba52

Please sign in to comment.