Sha256: 63b4c3e3e97ad6dc907c23a994caf1cd083991d0d9ce1f3fb5b149514275ef18
Contents?: true
Size: 920 Bytes
Versions: 21
Compression:
Stored size: 920 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' path = File.dirname(__FILE__) if File.exists?("#{path}/../.gitignore") %w(cicd-builder).each do |mod| add_path = File.expand_path(File.join(path, "../../#{mod}", "lib")) $:.unshift(add_path) end else # Borrowing from "whiches" gem ... cmd = File.basename(__FILE__, '.rb') exes = [] exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : [''] ENV['PATH'].split(File::PATH_SEPARATOR).each do |pth| exts.each { |ext| exe = File.join(pth, "#{cmd}#{ext}") exes << exe if File.executable? exe } end if exes.size > 0 path = File.dirname(exes[0]) end end add_path = File.expand_path(File.join(path, "..", "lib")) $:.unshift(add_path) require 'cicd/builder/chefrepo' # ===================================================================================================================== exit CiCd::Builder::ChefRepo::Runner.new().run()
Version data entries
21 entries across 21 versions & 1 rubygems