Sha256: d479454e1fa00f56c1a790f680bd43b5a5ae048d67c12bff92095c66a37a59aa
Contents?: true
Size: 796 Bytes
Versions: 11
Compression:
Stored size: 796 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Hanamismith module Builders module Puma # Builds project skeleton Puma Procfile for production and development environments. class Procfile using Refinements::Struct 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%/Procfile.erb")).render builder.call(configuration.merge(template_path: "%project_name%/Procfile.dev.erb")).render configuration end private attr_reader :configuration, :builder end end end end
Version data entries
11 entries across 11 versions & 1 rubygems