Sha256: e92811d86aca4a7e68fc9ea35c7637c5fe46d76ba4cf041736793b48db201a54
Contents?: true
Size: 668 Bytes
Versions: 6
Compression:
Stored size: 668 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' # require 'safe_yaml' # SafeYAML::OPTIONS[:default_mode] = :safe # 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| 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/decompiler' Aws::Cfn::DeCompiler::Main.new().run
Version data entries
6 entries across 6 versions & 1 rubygems