Sha256: e22eb12c5543177abbf97da18535b7cd6f4bc1fb5753699e97e8249fa5710157
Contents?: true
Size: 288 Bytes
Versions: 3
Compression:
Stored size: 288 Bytes
Contents
name "sample" always_start true collect do data = YAML.load_file('./tests/data/event.yml') data["events"].each do |e| e[:metric] = eval(e[:eval_metric]) if e.has_key? :eval_metric event(e) end sleep(plugin.sleep.to_f) exit 0 if plugin.sleep # 1 plugin send exit 0 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kurchatov-0.2.4 | tests/data/plugin_sample.rb |
kurchatov-0.2.3 | tests/data/plugin_sample.rb |
kurchatov-0.2.2 | tests/data/sample.rb |