Sha256: 848e4aa0a5b6c29d01b4ea4785f40bf1dbcd2aaf37f6fa32ecbf497fd7e2f0b9

Contents?: true

Size: 888 Bytes

Versions: 24

Compression:

Stored size: 888 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'

path = File.dirname(__FILE__)
if File.exists?("#{path}/../.gitignore")
  %w(aws-cfn-decompiler aws-cfn-compiler aws-cfn-dsl cloudformation-ruby-dsl dldinternet-mixlib-logging dldinternet-mixlib-cli).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 'aws/cfn/compiler'
Aws::Cfn::Compiler::Main.new.run

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
aws-cfn-compiler-0.9.27 bin/cfn-compiler
aws-cfn-compiler-0.9.26 bin/cfn-compiler
aws-cfn-compiler-0.9.25 bin/cfn-compiler
aws-cfn-compiler-0.9.24 bin/cfn-compiler
aws-cfn-compiler-0.9.23 bin/cfn-compiler
aws-cfn-compiler-0.9.22 bin/cfn-compiler
aws-cfn-compiler-0.9.21 bin/cfn-compiler
aws-cfn-compiler-0.9.20 bin/cfn-compiler
aws-cfn-compiler-0.9.19 bin/cfn-compiler
aws-cfn-compiler-0.9.18 bin/cfn-compiler
aws-cfn-compiler-0.9.17 bin/cfn-compiler
aws-cfn-compiler-0.9.16 bin/cfn-compiler
aws-cfn-compiler-0.9.15 bin/cfn-compiler
aws-cfn-compiler-0.9.14 bin/cfn-compiler
aws-cfn-compiler-0.9.13 bin/cfn-compiler
aws-cfn-compiler-0.9.12 bin/cfn-compiler
aws-cfn-compiler-0.9.9 bin/cfn-compiler
aws-cfn-compiler-0.9.8 bin/cfn-compiler
aws-cfn-compiler-0.9.7 bin/cfn-compiler
aws-cfn-compiler-0.9.5 bin/cfn-compiler