Sha256: 2aa77f40a397a3bd006905443264b2524714a0ec3ec80a027e86156fab08c44d
Contents?: true
Size: 688 Bytes
Versions: 29
Compression:
Stored size: 688 Bytes
Contents
# frozen_string_literal: true require "refinements/structs" module Hanamismith module Builders module Puma # Builds project skeleton Puma configuration. class Configuration using Refinements::Structs def self.call(...) = new(...).call def initialize configuration, builder: Rubysmith::Builder @configuration = configuration @builder = builder end def call builder.call(configuration.merge(template_path: "%project_name%/config/puma.rb.erb")) .render configuration end private attr_reader :configuration, :builder end end end end
Version data entries
29 entries across 29 versions & 1 rubygems