Sha256: fd0349dd55e3f6e2c9a3806bbdc79b436536128577b2d246dba942a8c5498e0c
Contents?: true
Size: 717 Bytes
Versions: 6
Compression:
Stored size: 717 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(...) = new(...).call def initialize configuration, builder: Builder @configuration = configuration @builder = builder end def call return unless configuration.build_guard builder.call(configuration.with(template_path: "%project_name%/bin/guard.erb")) .render .permit 0o755 builder.call(configuration.with(template_path: "%project_name%/Guardfile.erb")).render end private attr_reader :configuration, :builder end end end
Version data entries
6 entries across 6 versions & 1 rubygems