Sha256: 2bc122c3969f74d5b780dba20559bf77b25e01fffa33e34304faf5666b4ae069

Contents?: true

Size: 756 Bytes

Versions: 16

Compression:

Stored size: 756 Bytes

Contents

# frozen_string_literal: true

#
# Copyright (c) 2020-present, Blue Marble Payroll, LLC
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#

require_relative 'open_file_base'

module Burner
  module Library
    module IO
      # Read value from disk.
      #
      # Expected Payload[register] input: nothing.
      # Payload[register] output: contents of the specified file.
      class Read < OpenFileBase
        def perform(output, payload)
          compiled_path = job_string_template(path, output, payload)

          output.detail("Reading: #{compiled_path}")

          payload[register] = disk.read(compiled_path, binary: binary)
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
burner-1.12.0 lib/burner/library/io/read.rb
burner-1.11.0 lib/burner/library/io/read.rb
burner-1.10.0 lib/burner/library/io/read.rb
burner-1.9.0 lib/burner/library/io/read.rb
burner-1.9.0.pre.alpha lib/burner/library/io/read.rb
burner-1.8.0 lib/burner/library/io/read.rb
burner-1.7.0 lib/burner/library/io/read.rb
burner-1.7.0.pre.alpha lib/burner/library/io/read.rb
burner-1.6.0 lib/burner/library/io/read.rb
burner-1.6.0.pre.alpha lib/burner/library/io/read.rb
burner-1.5.0 lib/burner/library/io/read.rb
burner-1.5.0.pre.alpha lib/burner/library/io/read.rb
burner-1.4.0 lib/burner/library/io/read.rb
burner-1.4.0.pre.alpha lib/burner/library/io/read.rb
burner-1.3.0 lib/burner/library/io/read.rb
burner-1.3.0.pre.alpha lib/burner/library/io/read.rb