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

Version Path
aws-cfn-decompiler-0.2.5 bin/cfn-decompiler
aws-cfn-decompiler-0.2.4 bin/cfn-decompiler
aws-cfn-decompiler-0.2.3 bin/cfn-decompiler
aws-cfn-decompiler-0.2.1 bin/cfn-decompiler
aws-cfn-decompiler-0.0.3 bin/cfn-decompiler
aws-cfn-decompiler-0.0.2 bin/cfn-decompiler