Class: Aws::Cfn::Dsl::Main
- Defined in:
- lib/aws/cfn/dsl/main.rb
Instance Method Summary collapse
Methods inherited from Base
#initialize, #pprint, #simplify
Constructor Details
This class inherits a constructor from Aws::Cfn::Dsl::Base
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/aws/cfn/dsl/main.rb', line 9 def run @opts = Slop.parse(help: true) do on :j, :template=, 'The template to convert', as: String on :o, :output=, 'The directory to output the DSL to.', as: String end unless @opts[:template] puts @opts exit end load @opts[:template] pprint(simplify(@items)) end |