Sha256: b87b1f70451ff0a540dabf8692e9814465ed06334eebf1d9f0f8e76cfba3b5ea

Contents?: true

Size: 942 Bytes

Versions: 2

Compression:

Stored size: 942 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'

path = File.dirname(__FILE__)
if File.exists?("#{path}/../.gitignore")
  %w(chefrepo-builder 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/ansiblerepo'

# =====================================================================================================================
exit CiCd::Builder::AnsibleRepoBuilder.new().run()

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ansiblerepo-builder-0.2.2 bin/ansiblerepo
ansiblerepo-builder-0.2.1 bin/ansiblerepo