Sha256: 3429aba9c5bcdf0496baa86fbd03e0d15d546a2487cb6d7afb2cb4811777a248

Contents?: true

Size: 645 Bytes

Versions: 13

Compression:

Stored size: 645 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.exists?(ezbake_yaml)
        FileUtils.cp(
          ezbake_yaml,
          File.join(target_directory, "#{Pkg::Config.ref}.ezbake.manifest.yaml")
        )
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
packaging-0.108.2 lib/packaging/util/ezbake.rb
packaging-0.108.1 lib/packaging/util/ezbake.rb
packaging-0.108.0 lib/packaging/util/ezbake.rb
packaging-0.107.2 lib/packaging/util/ezbake.rb
packaging-0.107.1 lib/packaging/util/ezbake.rb
packaging-0.107.0 lib/packaging/util/ezbake.rb
packaging-0.106.3 lib/packaging/util/ezbake.rb
packaging-0.106.2 lib/packaging/util/ezbake.rb
packaging-0.106.1 lib/packaging/util/ezbake.rb
packaging-0.106.0 lib/packaging/util/ezbake.rb
packaging-0.105.0 lib/packaging/util/ezbake.rb
packaging-0.104.0 lib/packaging/util/ezbake.rb
packaging-0.102.0 lib/packaging/util/ezbake.rb