Sha256: f82a2c9ed300a9d1f0f22eb80d76e6e961c5b2368621a152a73d74818fde3919

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

module Tools
  module Support
    module Manifest
      private

      # Extract list of files to process from manifest JSON
      # @param manifest [String] Path to JSON configuration file that lists all files to be proceesed.
      # @return [Array] File paths that were contained within the manifest file.
      def extract_files(manifest)
        contents = File.read(manifest)
        json = JSON.parse(contents)

        json['files']
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bt-tools-0.3.0 lib/tools/support/manifest.rb