Sha256: df797e854d8025fc124bdcf78fe0079f09dc80b0edebd0622af0bb2a99e96402
Contents?: true
Size: 715 Bytes
Versions: 11
Compression:
Stored size: 715 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Hanamismith module Builders module Providers # Builds project skeleton for persistence provider. class Persistence using Refinements::Struct def self.call(...) = new(...).call def initialize configuration, builder: Rubysmith::Builder @configuration = configuration @builder = builder end def call path = "%project_name%/config/providers/persistence.rb.erb" builder.call(configuration.merge(template_path: path)).render configuration end private attr_reader :configuration, :builder end end end end
Version data entries
11 entries across 11 versions & 1 rubygems