Sha256: 5487ad352b5fd87d1d4266387b09b83dff60a628a77c171a659d46c0a6d257f8

Contents?: true

Size: 657 Bytes

Versions: 11

Compression:

Stored size: 657 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Gemsmith
  module Builders
    # Builds project skeleton Circle CI settings.
    class CircleCI < Rubysmith::Builders::CircleCI
      using Refinements::Struct

      def call
        return false unless settings.build_circle_ci

        super
        builder.call(settings.merge(template_path: "%project_name%/.circleci/config.yml.erb"))
               .replace %({{checksum "Gemfile.lock"}}),
                        %({{checksum "Gemfile"}}-{{checksum "#{project_name}.gemspec"}})

        true
      end

      private

      def project_name = settings.project_name
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gemsmith-22.10.0 lib/gemsmith/builders/circle_ci.rb
gemsmith-22.9.0 lib/gemsmith/builders/circle_ci.rb
gemsmith-22.8.0 lib/gemsmith/builders/circle_ci.rb
gemsmith-22.7.0 lib/gemsmith/builders/circle_ci.rb
gemsmith-22.6.0 lib/gemsmith/builders/circle_ci.rb
gemsmith-22.5.0 lib/gemsmith/builders/circle_ci.rb
gemsmith-22.4.0 lib/gemsmith/builders/circle_ci.rb
gemsmith-22.3.0 lib/gemsmith/builders/circle_ci.rb
gemsmith-22.2.0 lib/gemsmith/builders/circle_ci.rb
gemsmith-22.1.0 lib/gemsmith/builders/circle_ci.rb
gemsmith-22.0.0 lib/gemsmith/builders/circle_ci.rb