Sha256: 211b2641ecd48af6d83bc2f9912d023f673ec309b5e8b920486aab2331f11ba4
Contents?: true
Size: 684 Bytes
Versions: 12
Compression:
Stored size: 684 Bytes
Contents
# frozen_string_literal: true module Rubysmith module Builders # Builds project skeleton Guard support for a red, green, refactor loop. class Guard def self.call realm, builder: Builder new(realm, builder: builder).call end def initialize realm, builder: Builder @realm = realm @builder = builder end def call return unless realm.build_guard builder.call(realm.with(template_path: "%project_name%/bin/guard.erb")).render.permit 0o755 builder.call(realm.with(template_path: "%project_name%/Guardfile.erb")).render end private attr_reader :realm, :builder end end end
Version data entries
12 entries across 12 versions & 1 rubygems