Sha256: 288e40b657b8ea3f2cf99b2955f3651ea0d2259754d571949a433305afe42389
Contents?: true
Size: 955 Bytes
Versions: 9
Compression:
Stored size: 955 Bytes
Contents
require "aws/cfn/decompiler/version" require "aws/cfn/decompiler/base" require 'slop' module Aws module Cfn module DeCompiler class Main < Base attr_accessor :template def run parse_options set_config_options unless @config[:directory].nil? unless File.directory?(@config[:directory]) Dir.mkdir(@config[:directory]) end unless File.directory?(@config[:directory]) @logger.error "Cannot see output directory: #{@config[:directory]}" @logger.error @config.to_s exit end end decompiled = load_template @config[:template] validate(decompiled) output_dir = @config[:directory] || Dir.pwd save_dsl(output_dir,decompiled) @logger.step '*** Decompiled Successfully ***' end protected end end end end
Version data entries
9 entries across 9 versions & 1 rubygems