Sha256: 7d33534ceeab8eafca2efdac0f0b72cc9a07cbb397545b53eb3b6e7d5b97a38e

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add RSpec gem."

        on "--[no-]rspec"

        default { Container[:configuration].build_rspec }

        def call(value = default) = input.build_rspec = value
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubysmith-5.2.0 lib/rubysmith/cli/actions/rspec.rb