diff options
Diffstat (limited to 'templates/project/jobs/buzzwords.rb')
-rw-r--r-- | templates/project/jobs/buzzwords.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/project/jobs/buzzwords.rb b/templates/project/jobs/buzzwords.rb new file mode 100644 index 0000000..109dc60 --- /dev/null +++ b/templates/project/jobs/buzzwords.rb @@ -0,0 +1,9 @@ +buzzwords = ['Paradigm shift', 'Leverage', 'Pivoting', 'Turn-key', 'Streamlininess', 'Exit strategy', 'Synergy', 'Enterprise', 'Web 2.0'] +buzzword_counts = Hash.new({ value: 0 }) + +SCHEDULER.every '2s' do + random_buzzword = buzzwords.sample + buzzword_counts[random_buzzword] = { label: random_buzzword, value: buzzword_counts[random_buzzword][:value] + 1 } + + send_event('buzzwords', { items: buzzword_counts.values }) +end
\ No newline at end of file |