Sha256: 5c0e70c80fb11fbe53b164c97b3a1182ec11117e0e8d798a08b226f0cee353ad

Contents?: true

Size: 842 Bytes

Versions: 2

Compression:

Stored size: 842 Bytes

Contents

require 'rake/tasklib'

module Simp::Rake; end
module Simp::Rake::Build; end
module Simp::Rake::Build::Constants
  def init_member_vars( base_dir )
    @run_dir   = Dir.pwd
    @base_dir  = base_dir
    @build_arch = ENV['buld_arch'] || %x{#{:facter} hardwaremodel 2>/dev/null}.chomp
    @build_dir  = "#{@base_dir}/build"
    @dist_dir   = "#{@build_dir}/dist"
    @dvd_dir    = "#{@build_dir}/DVD_Overlay"
    @src_dir    = "#{@base_dir}/src"
    @dvd_src       = "#{@src_dir}/DVD"
    @spec_dir      = "#{@src_dir}/build"
    @spec_file    = FileList["#{@spec_dir}/*.spec"]
    @target_dists  = ['CentOS','RHEL']  # The first item is the default build...
    @simp_version  = Simp::RPM.get_info("#{@spec_dir}/simp.spec")[:full_version]
    @rhel_version  = ENV['rhel_version'] || '7'
    @simp_dvd_dirs = ["SIMP","ks","Config"]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simp-rake-helpers-3.0.2 lib/simp/rake/build/constants.rb
simp-rake-helpers-3.0.1 lib/simp/rake/build/constants.rb