Module: BridgetownCredentials
- Defined in:
- lib/bridgetown_credentials/version.rb,
lib/bridgetown_credentials/initializer.rb,
lib/bridgetown_credentials/commands/credentials.rb
Defined Under Namespace
Classes: Commands
Constant Summary collapse
- VERSION =
"1.0.1"
Class Method Summary collapse
Class Method Details
.initializer ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/bridgetown_credentials/initializer.rb', line 5 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 |