Sha256: 6538973c5739139c4504dfebac9a31fd2b3f591a2b3467cad25f989ef796475d

Contents?: true

Size: 521 Bytes

Versions: 6

Compression:

Stored size: 521 Bytes

Contents

require_relative 'serialize'

module Inferno
  module CLI
    class Execute
      # @private
      class JSONOutputter
        include Serialize

        def print_start_message(_options); end

        def print_around_run(_options, &)
          yield
        end

        def print_results(_options, results)
          puts serialize(results)
        end

        def print_end_message(_options); end

        def print_error(_options, exception)
          puts exception.to_json
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inferno_core-0.6.1 lib/inferno/apps/cli/execute/json_outputter.rb
inferno_core-0.6.0 lib/inferno/apps/cli/execute/json_outputter.rb
inferno_core-0.5.4 lib/inferno/apps/cli/execute/json_outputter.rb
inferno_core-0.5.3 lib/inferno/apps/cli/execute/json_outputter.rb
inferno_core-0.5.2 lib/inferno/apps/cli/execute/json_outputter.rb
inferno_core-0.5.1 lib/inferno/apps/cli/execute/json_outputter.rb