Sha256: 471eed3666f9df738c7f8a3b2a2a62d25d4a3d6d61d0045840bf2643e4a59ba7

Contents?: true

Size: 389 Bytes

Versions: 8

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Reek gem."

        on "--[no-]reek"

        default { Container[:settings].build_reek }

        def call(boolean) = settings.build_reek = 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/reek.rb
rubysmith-7.8.0 lib/rubysmith/cli/actions/reek.rb
rubysmith-7.7.0 lib/rubysmith/cli/actions/reek.rb
rubysmith-7.6.0 lib/rubysmith/cli/actions/reek.rb
rubysmith-7.5.0 lib/rubysmith/cli/actions/reek.rb
rubysmith-7.4.0 lib/rubysmith/cli/actions/reek.rb
rubysmith-7.3.0 lib/rubysmith/cli/actions/reek.rb
rubysmith-7.2.0 lib/rubysmith/cli/actions/reek.rb