module Aws::Cfn::DeCompiler::Options

Public Instance Methods

parse_options() click to toggle source
# File lib/aws/cfn/decompiler/mixins/options.rb, line 6
def parse_options
  # noinspection RubySuperCallWithoutSuperclassInspection
  setup_options

  @opts.on :F, :format=,        'The output format of the components. [JSON|YAML|Ruby]', { as: String, match: @format_regex, default: 'yaml' }
  @opts.on :s, :specification=, 'The specification file to create.', as: String

  @opts.parse!

  unless @opts[:directory]
    puts @opts
    abort! "Missing required option --directory"
  end

  unless @opts[:template]
    puts @opts
    abort! "Missing required option --template"
  end

end
set_config_options() click to toggle source
# File lib/aws/cfn/decompiler/mixins/options.rb, line 27
def set_config_options
  setup_config
end