Skip to content

Commit

Permalink
Merge pull request #65 from TNG/add-example-manifests
Browse files Browse the repository at this point in the history
chore: add example manifests
  • Loading branch information
alexzurbonsen authored Nov 28, 2024
2 parents 9f6642c + 5ca3195 commit 7ff6cf7
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
19 changes: 19 additions & 0 deletions example-manifests/green-hosting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: green-hosting-demo
description: example manifest invoking green-hosting plugin
tags:
initialize:
outputs:
- yaml
plugins:
'green-hosting':
method: GreenHosting
path: '@tngtech/if-webpage-plugins'
tree:
children:
child:
pipeline:
compute:
- green-hosting
inputs:
- url: www.thegreenwebfoundation.org
- url: www.tngtech.com
19 changes: 19 additions & 0 deletions example-manifests/shell.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: exec-shell-command-demo
description: example manifest invoking exec-shell-command
tags:
initialize:
outputs:
- yaml
plugins:
exec-command:
method: ShellExecCommand
path: '@tngtech/if-webpage-plugins'
config:
command: 'echo "Hello, World!"'
tree:
children:
child:
pipeline:
compute:
- exec-command
inputs:
30 changes: 30 additions & 0 deletions example-manifests/timer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: timer-demo
description: example manifest invoking timer plugins
tags:
initialize:
outputs:
- yaml
plugins:
timer-start:
method: TimerStart
path: '@tngtech/if-webpage-plugins'
timer-stop:
method: TimerStop
path: '@tngtech/if-webpage-plugins'
exec-command:
method: ShellExecCommand
path: '@tngtech/if-webpage-plugins'
config:
command: 'sleep 10'
tree:
children:
child:
pipeline:
compute:
- timer-start
- exec-command
- timer-stop
inputs:
- timestamp: 2024-02-25T00:00 # some placeholder timestamp that will be substituted by timer-start
duration: 1 # if reset = true this will be overwritten, otherwise it will be added to
resets: [true]
File renamed without changes.

0 comments on commit 7ff6cf7

Please sign in to comment.