Sha256: f73834df77e2cf3b7a7d583e0d1a99cc50066f0558fac781c4c9c37471c4900c

Contents?: true

Size: 919 Bytes

Versions: 9

Compression:

Stored size: 919 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::ChefRepoBuilder.new().run()

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
chefrepo-builder-0.9.20 bin/chefrepo
chefrepo-builder-0.9.18 bin/chefrepo
chefrepo-builder-0.9.17 bin/chefrepo
chefrepo-builder-0.9.16 bin/chefrepo
chefrepo-builder-0.9.15 bin/chefrepo
chefrepo-builder-0.1.5 bin/chefrepo
chefrepo-builder-0.1.4 bin/chefrepo
chefrepo-builder-0.1.3 bin/chefrepo
chefrepo-builder-0.1.2 bin/chefrepo