Sha256: 659fa1bb0d6dc91a97f19c227dcbf1d2fd8bafca0c7a81b20d110b85ac337021
Contents?: true
Size: 565 Bytes
Versions: 2
Compression:
Stored size: 565 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Hanamismith module Builders module CI # Builds project skeleton GitHub CI configuration. class GitHub < Rubysmith::Builders::Abstract using Refinements::Struct def call return configuration unless configuration.build_git_hub_ci path = "%project_name%/.github/workflows/ci.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/git_hub.rb |
hanamismith-0.37.0 | lib/hanamismith/builders/ci/git_hub.rb |