Sha256: 466bc53809d88bbf5d671b546ea75de5770da3aa91b495df2c42f52bf70f38e6

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

require 'open4'

module Process::Naf::Logger
  class Base < ::Af::Application

    def work
      log_file = ::Logical::Naf::LogFile.new(file_path)
      log_file.open

      while $stdin.gets
        begin
          log_file << $_.rstrip
        ensure
          log_file.write
        end
      end

      log_file.close
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
naf-2.1.6 app/models/process/naf/logger/base.rb
naf-2.1.5 app/models/process/naf/logger/base.rb
naf-2.1.4 app/models/process/naf/logger/base.rb