Skip to content

Commit

Permalink
Merge pull request #10 from ltamaster/master
Browse files Browse the repository at this point in the history
Adding  a WorkflowStep Waitfor/Sleep
  • Loading branch information
ltamaster authored Apr 18, 2018
2 parents 8d55a3b + 8346f6e commit 4d88c45
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
4 changes: 2 additions & 2 deletions local-script/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ providers:
- name: nixy-local-workflow-step
service: WorkflowStep
title: 'Local Workflow Script'
title: '*nixy / local-script / workflow'
title: '*nixy / local-script'
description: 'Run an inline script locally once for the workflow'
plugin-type: script
script-interpreter: /usr/bin/env bash
Expand All @@ -29,7 +29,7 @@ providers:
required: false
- name: nixy-local-node-step
service: WorkflowNodeStep
title: '*nixy / local-script / node'
title: '*nixy / local-script'
description: 'Run an inline script locally for each node'
plugin-type: script
script-interpreter: /usr/bin/env bash
Expand Down
28 changes: 25 additions & 3 deletions waitfor/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ providers:
title: maxtry
description: "the maximum number of attempts to try"
required: true
- name: nixy-waitfor-sleep
service: RemoteScriptNodeStep
- name: nixy-waitfor-sleep-workflow-step
service: WorkflowStep
title: '*nixy / waitfor / sleep'
description: 'wait for sleep to elapse'
description: 'wait for sleep to elapse, it will run locally once for the workflow'
plugin-type: script
script-interpreter: /usr/bin/env bash
script-file: sleep
Expand All @@ -247,3 +247,25 @@ providers:
name: progress
title: Progress?
description: "Show progress with dot characters."
- name: nixy-waitfor-sleep-workflow-node-step
service: WorkflowNodeStep
title: '*nixy / waitfor / sleep'
description: 'wait for sleep to elapse, it will run locally once for each node'
plugin-type: script
script-interpreter: /usr/bin/env bash
script-file: sleep
script-args: ${config.interval} ${config.cycles} ${config.progress}
config:
- type: String
name: interval
title: Interval
description: "the wait interval in seconds, minutes or hours. eg: 1s, 1m, 1h"
required: true
- type: String
name: cycles
title: Cycles
description: "the number of sleep cycles"
- type: Boolean
name: progress
title: Progress?
description: "Show progress with dot characters."

0 comments on commit 4d88c45

Please sign in to comment.