Class: Cloudit::Command::Validate

Inherits:
Base
  • Object
show all
Defined in:
lib/cloudit/command/validate.rb

Constant Summary collapse

VALID_METHODS =
['help']
DESCRIPTION =
"Validate CloudFormation template"
DEFAULT_REGION =
'us-east-1'

Constants inherited from Base

Base::DEFAULT_DIRECTORY, Base::OPTION_NAME_OFFSET

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



10
11
12
13
14
15
16
# File 'lib/cloudit/command/validate.rb', line 10

def index
  if @opts.help?
    $stdout.puts slop_opts
  else
    validate_template @opts[:region]
  end
end