Class: Cloudit::Command::Generate
- Defined in:
- lib/cloudit/command/generate.rb
Constant Summary collapse
- VALID_METHODS =
['help']
- SECTIONS =
['Metadata', 'Parameters', 'Mappings', 'Conditions', 'Resources', 'Outputs']
- DESCRIPTION =
'Build YAML files into Cloudformation template'- DEFAULT_OUT_FILE =
'out.json'- DEFAULT_MAIN_CFN_EXTENSION =
'cfn.yml'- DEFAULT_DIRECTORY =
'./'
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#execute, #help, #initialize, #invalid_method, #parser, #slop_opts
Constructor Details
This class inherits a constructor from Cloudit::Command::Base
Instance Method Details
#index ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/cloudit/command/generate.rb', line 14 def index if @opts.help? $stdout.puts slop_opts else generate_json end end |