Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
(#347) Add a basic task to assist with testing the functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
ripienaar committed Mar 19, 2018
1 parent 1ae6035 commit dffe248
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions module/tasks/tasks/ping.json
@@ -0,0 +1,10 @@
{
"description": "A basic echo task to test Choria Tasks functionality",
"input_method": "environment",
"parameters": {
"message": {
"description": "The message to echo back",
"type": "String[1]"
}
}
}
5 changes: 5 additions & 0 deletions module/tasks/tasks/ping.rb
@@ -0,0 +1,5 @@
#!/opt/puppetlabs/puppet/bin/ruby

require "json"

puts({"message" => ENV["PT_message"], "timestamp" => Time.now}.to_json)

0 comments on commit dffe248

Please sign in to comment.