Sha256: f579265190add03ba87dfd0af695a4aa1b5be6b30754a517acb8e37d97c6c565

Contents?: true

Size: 415 Bytes

Versions: 2

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

require "sod"

module Rubysmith
  module CLI
    module Actions
      # Stores Zeitwerk flag.
      class Zeitwerk < Sod::Action
        include Import[:settings]

        description "Add Zeitwerk gem."

        on "--[no-]zeitwerk"

        default { Container[:settings].build_zeitwerk }

        def call(value = nil) = settings.build_zeitwerk = value
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-7.1.0 lib/rubysmith/cli/actions/zeitwerk.rb
rubysmith-7.0.0 lib/rubysmith/cli/actions/zeitwerk.rb