Class: Jets::CLI::Exec
- Defined in:
- lib/jets/cli/exec.rb,
lib/jets/cli/exec/repl.rb,
lib/jets/cli/exec/command.rb
Defined Under Namespace
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #paginate, #paging_params, rescue_api_error
Methods included from Util::Logging
Methods included from AwsServices
#apigateway, #aws_options, #cfn, #codebuild, #dynamodb, #lambda_client, #logs, #s3, #s3_resource, #sns, #sqs, #ssm, #sts, #wafv2
Methods included from AwsServices::StackStatus
Methods included from AwsServices::GlobalMemoist
Methods included from Api
Constructor Details
This class inherits a constructor from Jets::CLI::Base
Instance Method Details
#run ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/jets/cli/exec.rb', line 3 def run if @options[:command].empty? Repl.new().start else Command.new().run end rescue Jets::CLI::Call::Error => e puts "ERROR: #{e.}".color(:red) abort "Unable to find the function. Please check the function name and try again." end |