Sha256: dc5f83855dee1ca5735376659faef14ce8b77594d69685cfdcd7d04717ee25c8
Contents?: true
Size: 1.96 KB
Versions: 7
Compression:
Stored size: 1.96 KB
Contents
# frozen_string_literal: true module Gemsmith module CLI module Actions # Handles the build action. class Build include Gemsmith::Import[:logger] # Order is important. BUILDERS = [ Rubysmith::Builders::Core, Rubysmith::Builders::Version, Builders::Specification, Rubysmith::Builders::Documentation::Readme, 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, 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::Caliber, Rubysmith::Extensions::Bundler, Rubysmith::Extensions::Pragmater, Rubysmith::Extensions::Tocer, Rubysmith::Extensions::Rubocop, Builders::Git::Commit ].freeze def initialize builders: BUILDERS, **dependencies super(**dependencies) @builders = builders end def call configuration log_info "Building project skeleton: #{configuration.project_name}..." builders.each { |builder| builder.call configuration } log_info "Project skeleton complete!" end private attr_reader :builders def log_info(message) = logger.info { message } end end end end
Version data entries
7 entries across 7 versions & 1 rubygems