Sha256: 5d118a57e7b13ed67d49dc39056b4cb34eb024fe3b13fd159b29e3dbf592a6ca
Contents?: true
Size: 758 Bytes
Versions: 4
Compression:
Stored size: 758 Bytes
Contents
# frozen_string_literal: true if Gem.loaded_specs.key?("rails") require "rails/generators" module AwsSecretsManager module Generators class Install < Rails::Generators::Base # rubocop:disable Layout/HeredocIndentation def create_helper_file create_file("config/initializers/aws_secrets_manager.rb", <<-FILE) # frozen_string_literal: true require 'aws_secrets_manager' AwsSecretsManager.configure do |config| config.aws_region = "AWS_REGION" end AwsSecretsManager.get_secret_value(secrets: [ { name: "secret_name", type: "plaintext" }, { name: "secret_name", type: "key_value" }] ) FILE end # rubocop:enable Layout/HeredocIndentation end end end end
Version data entries
4 entries across 4 versions & 1 rubygems