Sha256: 206c0700cb67ec6f7955ad09a543ef88f494ba381f70184f945d79c58aca48da
Contents?: true
Size: 702 Bytes
Versions: 3
Compression:
Stored size: 702 Bytes
Contents
require 'observed/hash/fetcher' require 'observed/observer' require 'observed/reporter' require 'observed/reporter/regexp_matching' require 'observed/reporter/report_formatting' module Observed module BuiltinPlugins class Stdout < Observed::Reporter include Observed::Reporter::RegexpMatching include Observed::Reporter::ReportFormatting attribute :output, default: STDOUT # @param [String] tag # @param [Time] time # @param [Hash] data # @param [Object] format_result def report(tag, time, data) formatted_data = format_report(tag, time, data) output.puts formatted_data end plugin_name 'stdout' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
observed-0.2.0 | lib/observed/builtin_plugins/stdout.rb |
observed-0.2.0.rc2 | lib/observed/builtin_plugins/stdout.rb |
observed-0.2.0.rc1 | lib/observed/builtin_plugins/stdout.rb |