Sha256: 4122d5fa814ba4944d55406b069e8294eb663c4996c0b1c0a66b3cdde1d0a149

Contents?: true

Size: 422 Bytes

Versions: 8

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add SimpleCov gem."

        on "--[no-]simple_cov"

        default { Container[:settings].build_simple_cov }

        def call(boolean) = settings.build_simple_cov = boolean
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/cli/actions/simple_cov.rb
rubysmith-7.8.0 lib/rubysmith/cli/actions/simple_cov.rb
rubysmith-7.7.0 lib/rubysmith/cli/actions/simple_cov.rb
rubysmith-7.6.0 lib/rubysmith/cli/actions/simple_cov.rb
rubysmith-7.5.0 lib/rubysmith/cli/actions/simple_cov.rb
rubysmith-7.4.0 lib/rubysmith/cli/actions/simple_cov.rb
rubysmith-7.3.0 lib/rubysmith/cli/actions/simple_cov.rb
rubysmith-7.2.0 lib/rubysmith/cli/actions/simple_cov.rb