Class: Cloudit::Command::Generate

Inherits:
Base
  • Object
show all
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

Base::OPTION_NAME_OFFSET

Instance Attribute Summary

Attributes inherited from Base

#commands

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

#indexObject



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