Sha256: d0c2a2b941db5dbebfae1cddfc8cff4a42f9b9e66679a7aa9e8096508709f264

Contents?: true

Size: 644 Bytes

Versions: 24

Compression:

Stored size: 644 Bytes

Contents

# Utility methods for handling ezbake

require 'fileutils'

module Pkg::Util::EZbake
  class << self
    def add_manifest(target_directory)
      ezbake_manifest = File.join('ext', 'ezbake.manifest')
      ezbake_yaml = File.join('ext', 'ezbake.manifest.yaml')

      if File.exist?(ezbake_manifest)
        FileUtils.cp(
          ezbake_manifest,
          File.join(target_directory, "#{Pkg::Config.ref}.ezbake.manifest")
        )
      end

      if File.exist?(ezbake_yaml)
        FileUtils.cp(
          ezbake_yaml,
          File.join(target_directory, "#{Pkg::Config.ref}.ezbake.manifest.yaml")
        )
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

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