Sha256: 4f5d0d7a75589a2288aa66d411ca69d055f7244db4b166cf1f4b10450955bbfd

Contents?: true

Size: 391 Bytes

Versions: 2

Compression:

Stored size: 391 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Rake gem."

        on "--[no-]rake"

        default { Container[:settings].build_rake }

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