Class: Jets::CLI::Curl

Inherits:
Base
  • Object
show all
Defined in:
lib/jets/cli/curl.rb,
lib/jets/cli/curl/request.rb

Defined Under Namespace

Modules: Adapter Classes: Request

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize, #paginate, #paging_params, rescue_api_error

Methods included from Util::Logging

#log

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

#output_value, #stack_exists?

Methods included from AwsServices::GlobalMemoist

included, #reset_cache!

Methods included from Api

#api, #api_key

Constructor Details

This class inherits a constructor from Jets::CLI::Base

Instance Method Details

#runObject



3
4
5
6
7
# File 'lib/jets/cli/curl.rb', line 3

def run
  result = Request.new(options).run
  # only thing that goes to stdout. so can pipe to commands like jq
  puts JSON.pretty_generate(result)
end