Class: Jets::Command::CallCommand

Inherits:
Base
  • Object
show all
Includes:
AwsServices
Defined in:
lib/jets/commands/call/call_command.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from AwsServices

#apigateway, #aws_lambda, #aws_options, #cfn, #dynamodb, #logs, #s3, #s3_resource, #sns, #sqs, #sts

Methods included from AwsServices::StackStatus

#lookup, #stack_exists?, #stack_in_progress?

Methods included from AwsServices::GlobalMemoist

included

Methods inherited from Base

banner, base_name, command_name, default_command_root, desc, engine?, executable, exit_on_failure?, #help, hide_command!, inherited, long_desc, namespace, perform, printing_commands, usage_path

Methods included from ApiHelpers

#check_for_error_message!, #no_token_exit!, #paging_params

Methods included from AwsHelpers

#find_stack, #first_run?

Methods included from Actions

#load_generators, #load_tasks, #require_application!, #require_application_and_environment!, #set_application_directory!

Instance Method Details

#perform(function_name, payload = '') ⇒ Object



20
21
22
23
24
25
# File 'lib/jets/commands/call/call_command.rb', line 20

def perform(function_name, payload='')
  $stdout.sync = true
  $stderr.sync = true
  $stdout = $stderr # jets call operation
  Jets::Commands::Call::Caller.new(function_name, payload, options).run
end