Module: Pkg::Util::EZbake

Defined in:
lib/packaging/util/ezbake.rb

Class Method Summary collapse

Class Method Details

.add_manifest(target_directory) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/packaging/util/ezbake.rb', line 7

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