bin/cfn-compiler in aws-cfn-compiler-0.8.9 vs bin/cfn-compiler in aws-cfn-compiler-0.8.10
- old
+ new
@@ -2,21 +2,21 @@
require 'rubygems'
path = File.dirname(__FILE__)
if File.exists?("#{path}/../.gitignore")
- %w(aws-cfn-decompiler aws-cfn-compiler cloudformation-ruby-dsl).each do |mod|
+ %w(aws-cfn-decompiler aws-cfn-compiler aws-cfn-dsl cloudformation-ruby-dsl dldinternet-mixlib-logging).each do |mod|
add_path = File.expand_path(File.join(path, "../../#{mod}", "lib"))
$:.unshift(add_path)
end
else
-# Borrowing from "whiches" gem ...
+ # Borrowing from "whiches" gem ...
cmd = File.basename(__FILE__, '.rb')
exes = []
exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
- ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
+ ENV['PATH'].split(File::PATH_SEPARATOR).each do |pth|
exts.each { |ext|
- exe = File.join(path, "#{cmd}#{ext}")
+ exe = File.join(pth, "#{cmd}#{ext}")
exes << exe if File.executable? exe
}
end
if exes.size > 0
path = File.dirname(exes[0])