Sha256: 88ba242e85f147dc2e0f1a541c76a4b238bc4bf8fe089a5e885cba4401956e3c

Contents?: true

Size: 478 Bytes

Versions: 37

Compression:

Stored size: 478 Bytes

Contents

# Utility methods for handling miscellaneous build metadata

require 'fileutils'

module Pkg::Util::BuildMetadata
  class << self
    def add_misc_json_files(target_directory)
      misc_json_files = Dir.glob('ext/build_metadata*.json')
      misc_json_files.each do |source_file|
        target_file = File.join(
          target_directory, "#{Pkg::Config.ref}.#{File.basename(source_file)}"
        )
        FileUtils.cp(source_file, target_file)
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
packaging-0.122.3 lib/packaging/util/build_metadata.rb
packaging-0.122.2 lib/packaging/util/build_metadata.rb
packaging-0.122.1 lib/packaging/util/build_metadata.rb
packaging-0.122.0 lib/packaging/util/build_metadata.rb
packaging-0.121.0 lib/packaging/util/build_metadata.rb
packaging-0.120.0 lib/packaging/util/build_metadata.rb
packaging-0.118.0 lib/packaging/util/build_metadata.rb
packaging-0.117.0 lib/packaging/util/build_metadata.rb
packaging-0.116.0 lib/packaging/util/build_metadata.rb
packaging-0.115.0 lib/packaging/util/build_metadata.rb
packaging-0.114.0 lib/packaging/util/build_metadata.rb
packaging-0.113.0 lib/packaging/util/build_metadata.rb
packaging-0.112.0 lib/packaging/util/build_metadata.rb
packaging-0.111.0 lib/packaging/util/build_metadata.rb
packaging-0.110.1 lib/packaging/util/build_metadata.rb
packaging-0.110.0 lib/packaging/util/build_metadata.rb
packaging-0.109.7 lib/packaging/util/build_metadata.rb
packaging-0.109.6 lib/packaging/util/build_metadata.rb
packaging-0.109.5 lib/packaging/util/build_metadata.rb
packaging-0.109.4 lib/packaging/util/build_metadata.rb