Sha256: 17def943d1ff3fda74eef08f5204b5800ecce8f9123b000dced127b2ab909ef3

Contents?: true

Size: 620 Bytes

Versions: 20

Compression:

Stored size: 620 Bytes

Contents

# frozen_string_literal: true

require 'json'
require 'bolt/result'

module Bolt
  class Node
    class Output
      attr_reader :stderr, :stdout, :merged_output
      attr_accessor :exit_code

      def initialize
        @stdout        = StringIO.new
        @stderr        = StringIO.new
        @merged_output = StringIO.new
        @exit_code     = 'unknown'
      end

      def to_h
        {
          'stdout'        => @stdout.string,
          'stderr'        => @stderr.string,
          'merged_output' => @merged_output.string,
          'exit_code'     => @exit_code
        }
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
bolt-3.17.0 lib/bolt/node/output.rb
bolt-3.16.1 lib/bolt/node/output.rb
bolt-3.16.0 lib/bolt/node/output.rb
bolt-3.15.0 lib/bolt/node/output.rb
bolt-3.14.1 lib/bolt/node/output.rb
bolt-3.13.0 lib/bolt/node/output.rb
bolt-3.12.0 lib/bolt/node/output.rb
bolt-3.11.0 lib/bolt/node/output.rb
bolt-3.10.0 lib/bolt/node/output.rb
bolt-3.9.2 lib/bolt/node/output.rb
bolt-3.9.1 lib/bolt/node/output.rb
bolt-3.9.0 lib/bolt/node/output.rb
bolt-3.8.1 lib/bolt/node/output.rb
bolt-3.8.0 lib/bolt/node/output.rb
bolt-3.7.1 lib/bolt/node/output.rb
bolt-3.7.0 lib/bolt/node/output.rb
bolt-3.6.1 lib/bolt/node/output.rb
bolt-3.6.0 lib/bolt/node/output.rb
bolt-3.5.0 lib/bolt/node/output.rb
bolt-3.4.0 lib/bolt/node/output.rb