Sha256: 90a93c8969bd9747ec7a08b78a8fbb6560b726337d63de7421716a87b94ce049

Contents?: true

Size: 397 Bytes

Versions: 2

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add RSpec gem."

        on "--[no-]rspec"

        default { Container[:settings].build_rspec }

        def call(value = nil) = settings.build_rspec = 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/rspec.rb
rubysmith-7.0.0 lib/rubysmith/cli/actions/rspec.rb