Sha256: 3409991a02475f27b11ab4901f369e8a19662535f5a57e2a4f31a1f559c28ac4

Contents?: true

Size: 553 Bytes

Versions: 12

Compression:

Stored size: 553 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'

# Borrowing from "whiches" gem ...
cmd  = File.basename(__FILE__)
exes = []
exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
  exts.each { |ext|
    exe = File.join(path, "#{cmd}#{ext}")
    exes << exe if File.executable? exe
  }
end
path = if exes.size > 0
         File.dirname(exes[0])
       else
         File.dirname(__FILE__)
       end

add_path = File.expand_path(File.join(path, "..", "lib"))
$:.unshift(add_path)

require 'aws/cfn/yats'

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
aws-cfn-yats-0.1.6 bin/yats
aws-cfn-yats-0.1.6 bin/cfn-yats
aws-cfn-yats-0.1.5 bin/cfn-yats
aws-cfn-yats-0.1.5 bin/yats
aws-cfn-yats-0.1.2 bin/cfn-yats
aws-cfn-yats-0.1.2 bin/yats
aws-cfn-yats-0.1.1 bin/cfn-yats
aws-cfn-yats-0.1.1 bin/yats
aws-cfn-yats-0.1.0 bin/yats
aws-cfn-yats-0.1.0 bin/cfn-yats
aws-cfn-yats-0.0.4 bin/cfn-yats
aws-cfn-yats-0.0.4 bin/yats