Sha256: 5d9ae4ee5a5bfaa263b9023e3017c593ee033858014aec2bfcb0e0a89b786488

Contents?: true

Size: 238 Bytes

Versions: 4

Compression:

Stored size: 238 Bytes

Contents

module OneshotSpec
  class FooPlugin < Observed::Observer

    def observe
      sleep_duration = rand / 20
      sleep sleep_duration
      system.report(tag, system.now, "Foo #{sleep_duration}")
    end

    plugin_name 'foo'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
observed-0.2.0 spec/fixtures/configure_by_conf/foo_plugin.rb
observed-0.2.0.rc2 spec/fixtures/configure_by_conf/foo_plugin.rb
observed-0.2.0.rc1 spec/fixtures/configure_by_conf/foo_plugin.rb
observed-0.1.1 spec/fixtures/configure_by_conf/foo_plugin.rb