Sha256: d38737333fd75837c913aedb5a02c9fec61375e0a2ec574bc52e0cba0a4f2ebe
Contents?: true
Size: 599 Bytes
Versions: 2
Compression:
Stored size: 599 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Rubysmith module Builders # Builds project skeleton Guard support for a red, green, refactor loop. class Guard < Abstract using Refinements::Struct def call return configuration unless configuration.build_guard builder.call(configuration.merge(template_path: "%project_name%/bin/guard.erb")) .render .permit 0o755 builder.call(configuration.merge(template_path: "%project_name%/Guardfile.erb")).render configuration end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysmith-6.10.0 | lib/rubysmith/builders/guard.rb |
rubysmith-6.9.0 | lib/rubysmith/builders/guard.rb |