Sha256: 01054831e5d5dceb997215154c3d7553b0a9abe0f875609c6025deb1a5ad2756
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true module BridgetownCredentials class << self def initializer Dry::Credentials::Extension.new.then do |credentials| credentials[:env] = Bridgetown.env credentials[:dir] = "#{Bridgetown.configuration.root_dir}/config/credentials" Pathname(credentials[:dir]).mkpath credentials.load! Bridgetown.define_singleton_method(:credentials) { credentials } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bridgetown_credentials-1.0.0 | lib/bridgetown_credentials/initializer.rb |