Sha256: b2e343abc183b3ab134f75d65ed2ed57fbe1601e087b7911f71e12b33b18cc5e

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

# frozen_string_literal: true

require 'puppet_editor_services/connection/base'

module PuppetEditorServices
  module Connection
    class Stdio < ::PuppetEditorServices::Connection::Base
      def send_data(data)
        $editor_services_stdout.write(data) # rubocop:disable Style/GlobalVars  We need this global var
        true
      end

      def close_after_writing
        $editor_services_stdout.flush # rubocop:disable Style/GlobalVars  We need this global var
        server.close_connection
        true
      end

      def close
        server.close_connection
        true
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puppet-editor-services-2.0.4 lib/puppet_editor_services/connection/stdio.rb