Sha256: 7b42a4f033705c37d77ecf85603170ac1be45698f4a8cd362d13db11948c7e3d
Contents?: true
Size: 638 Bytes
Versions: 11
Compression:
Stored size: 638 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Hanamismith module Builders # Builds project skeleton binstub. class Binstub 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%/bin/hanami.erb")) .render .permit 0o755 configuration end private attr_reader :configuration, :builder end end end
Version data entries
11 entries across 11 versions & 1 rubygems