Sha256: 7301a6394be534f8663015e2ff0d33a2d9ed3ed7e4ca433c39658b0138f6f7c6
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Hanamismith module Builders module CI # Builds project skeleton Circle CI configuration. class Circle < Rubysmith::Builders::Abstract using Refinements::Struct def call return configuration unless configuration.build_circle_ci path = "%project_name%/.circleci/config.yml.erb" builder.call(configuration.merge(template_path: path)).render.replace(/\n\n\Z/, "\n") configuration end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hanamismith-0.38.0 | lib/hanamismith/builders/ci/circle.rb |
hanamismith-0.37.0 | lib/hanamismith/builders/ci/circle.rb |