Skip to content

Commit

Permalink
Fix codegen, force autoload
Browse files Browse the repository at this point in the history
  • Loading branch information
alextwoods committed Aug 7, 2024
1 parent a4c4fcd commit e120c61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/build.rake
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ end
# It is need to provide session credentials and assume role support.
# Only building source, but not gemspecs, version file, etc.
task 'build:aws-sdk-sts' do
Aws::STS if Aws.autoload?(:STS) # force autoload from core
sts = BuildTools::Services.service('sts')
generator = AwsSdkCodeGenerator::CodeBuilder.new(
aws_sdk_core_lib_path: $CORE_LIB,
Expand All @@ -48,6 +49,7 @@ end
# It is need to provide SSO Credentials.
# Only building source, but not gemspecs, version file, etc.
task 'build:aws-sdk-sso' do
Aws::SSO if Aws.autoload?(:SSO) # force autoload from core
sso = BuildTools::Services.service('sso')
generator = AwsSdkCodeGenerator::CodeBuilder.new(
aws_sdk_core_lib_path: $CORE_LIB,
Expand All @@ -66,6 +68,8 @@ end
# Aws::SSOOIDC is generated directly into the `aws-sdk-core` gem.
# Only building source, but not gemspecs, version file, etc.
task 'build:aws-sdk-ssooidc' do
Aws::SSOOIDC if Aws.autoload?(:SSOOIDC) # force autoload from core

ssooidc = BuildTools::Services.service('ssooidc')
generator = AwsSdkCodeGenerator::CodeBuilder.new(
aws_sdk_core_lib_path: $CORE_LIB,
Expand Down

0 comments on commit e120c61

Please sign in to comment.