Sha256: 0996043a64c6a37ab6498483af064d5cb6cc203868ee2d65527cc441ae1c491f
Contents?: true
Size: 779 Bytes
Versions: 28
Compression:
Stored size: 779 Bytes
Contents
# frozen_string_literal: true require "refinements/structs" module Hanamismith module Builders module RSpec # Builds project skeleton RSpec application database support. class Database using Refinements::Structs def self.call(...) = new(...).call def initialize configuration, builder: Rubysmith::Builder @configuration = configuration @builder = builder end def call return configuration unless configuration.build_rspec path = "%project_name%/spec/support/database.rb.erb" builder.call(configuration.merge(template_path: path)).render configuration end private attr_reader :configuration, :builder end end end end
Version data entries
28 entries across 28 versions & 1 rubygems