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"

Constants inherited from Base

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



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

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