Sha256: 5bfad5281da9e1ee729e6224a952c29e219e8828ab0f3269eae429be4d2cfdf0
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
# frozen_string_literal: true module Rubysmith module CLI module Processors # Handles the Command Line Interface (CLI) for building of a project skeleton. class Build # Order is important. MINIMUM = [ Builders::Core, Builders::Bundler, Builders::Pragma ].freeze # Order is important. MAXIMUM = [ Builders::Core, Builders::Documentation, Builders::Git::Setup, Builders::Bundler, Builders::Rake, Builders::Console, Builders::Setup, Builders::Guard, Builders::Reek, Builders::RSpec::Context, Builders::RSpec::Helper, Builders::Pragma, Builders::Rubocop, Builders::Git::Commit ].freeze def initialize builders: MAXIMUM @builders = builders end def call options Realm[**options].then(&method(:process)) end private attr_reader :builders def process realm builders.each { |builder| builder.call realm } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysmith-0.4.0 | lib/rubysmith/cli/processors/build.rb |
rubysmith-0.3.0 | lib/rubysmith/cli/processors/build.rb |