Sha256: c7802597c60892c93a5f78e3ec3c1d56744061072f15d8d4093c22a2d9b75ed0

Contents?: true

Size: 896 Bytes

Versions: 9

Compression:

Stored size: 896 Bytes

Contents

module Appfuel
  module Service
    module Config
      #
      # Defines how to parse and validate configuration data for aws
      #
      # Configuration Overview:
      #   access_key_id:    access credentials for aws
      #   secret_access_key: access credentials for aws
      #   assets_bucket:    name of bucket to hold assets
      #   documents_buckets  name of bucket to hold documents
      #
      #   @returns Config::Definition
      def self.aws_definition
        Appfuel::Configuration.define :aws do
          defaults region: 'us-east-1'

          validator {
            required(:region).filled(:str?)
            optional(:access_key_id).filled(:str?)
            optional(:secret_access_key).filled(:str?)
            optional(:kms_master_key_id).filled(:str?)
            optional(:kms_data_key_cipher).filled(:str?)
          }
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
appfuel-service-0.4.2 lib/appfuel/service/config/aws.rb
appfuel-service-0.4.1 lib/appfuel/service/config/aws.rb
appfuel-service-0.3.4 lib/appfuel/service/config/aws.rb
appfuel-service-0.3.3 lib/appfuel/service/config/aws.rb
appfuel-service-0.3.2 lib/appfuel/service/config/aws.rb
appfuel-service-0.2.11 lib/appfuel/service/config/aws.rb
appfuel-service-0.2.10 lib/appfuel/service/config/aws.rb
appfuel-service-0.2.9 lib/appfuel/service/config/aws.rb
appfuel-service-0.2.8 lib/appfuel/service/config/aws.rb