Sha256: 1337ddb8dbe31b66f3d9d07940970fe8e35d6e5ad70768d71c9c05a8e6e8ecc1
Contents?: true
Size: 643 Bytes
Versions: 4
Compression:
Stored size: 643 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' # require 'safe_yaml' # SafeYAML::OPTIONS[:default_mode] = :safe # Borrowing from "whiches" gem ... cmd = 'json_pp' 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/compiler' Aws::Cfn::Compiler::Main.new().run
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
aws-cfn-compiler-0.0.6 | bin/cfn-compiler |
aws-cfn-compiler-0.0.5 | bin/cfn-compiler |
aws-cfn-compiler-0.0.4 | bin/cfn-compiler |
aws-cfn-compiler-0.0.3 | bin/cfn-compiler |