class Gemsmith::CLI::Commands::Build

Handles the build action.

Constants

BUILDERS

Order is important.

Attributes

builders[R]

Public Class Methods

new(builders: BUILDERS, **) click to toggle source
Calls superclass method
# File lib/gemsmith/cli/commands/build.rb, line 98
def initialize(builders: BUILDERS, **)
  super(**)
  @builders = builders
end

Public Instance Methods

call() click to toggle source
# File lib/gemsmith/cli/commands/build.rb, line 103
def call
  log_info "Building project skeleton: #{settings.project_name}..."
  builders.each { |builder| builder.new(settings:, logger:).call }
  log_info "Project skeleton complete!"
end

Private Instance Methods

log_info(message) click to toggle source
# File lib/gemsmith/cli/commands/build.rb, line 113
  def log_info(message) = logger.info { message }
end