Class: Swa::CLI::BaseCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/swa/cli/base_command.rb

Direct Known Subclasses

Ec2Command, MainCommand

Instance Method Summary collapse

Instance Method Details

#run(arguments) ⇒ Object



36
37
38
39
40
41
42
# File 'lib/swa/cli/base_command.rb', line 36

def run(arguments)
  super(arguments)
rescue Aws::Errors::MissingCredentialsError
  signal_error "no credentials provided"
rescue Aws::Errors::ServiceError => e
  signal_error e.message
end