Sha256: f35cfc002dcb15e9c30c249dd58946bee315fd0455ce2a0e5fb41c7c9e815501

Contents?: true

Size: 1.61 KB

Versions: 1

Compression:

Stored size: 1.61 KB

Contents

# frozen_string_literal: true

module Gemsmith
  module CLI
    module Actions
      # Handles the build action.
      class Build
        # Order is important.
        BUILDERS = [
          Rubysmith::Builders::Core,
          Rubysmith::Builders::Version,
          Builders::Specification,
          Rubysmith::Builders::Documentation::Readme,
          Rubysmith::Builders::Documentation::Citation,
          Rubysmith::Builders::Documentation::License,
          Rubysmith::Builders::Documentation::Version,
          Rubysmith::Builders::Git::Setup,
          Rubysmith::Builders::Git::Ignore,
          Builders::Git::Ignore,
          Rubysmith::Builders::Bundler,
          Builders::Bundler,
          Builders::CLI,
          Rubysmith::Builders::Rake,
          Rubysmith::Builders::Console,
          Rubysmith::Builders::CircleCI,
          Rubysmith::Builders::Setup,
          Rubysmith::Builders::GitHub,
          Rubysmith::Builders::Guard,
          Rubysmith::Builders::Reek,
          Rubysmith::Builders::RSpec::Context,
          Rubysmith::Builders::RSpec::Helper,
          Builders::RSpec::Helper,
          Rubysmith::Builders::Rubocop,
          Rubysmith::Extensions::Bundler,
          Rubysmith::Extensions::Pragmater,
          Rubysmith::Extensions::Tocer,
          Rubysmith::Extensions::Rubocop,
          Builders::Git::Commit
        ].freeze

        def initialize builders: BUILDERS
          @builders = builders
        end

        def call(configuration) = builders.each { |builder| builder.call configuration }

        private

        attr_reader :configuration, :builders
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemsmith-16.0.0 lib/gemsmith/cli/actions/build.rb