Sha256: 366f82b2cafc5e5f9f04b8f47f9b93660a6f1bd22bb1b0db0ef5cf27e4133e7f

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

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

        using ::Refinements::Structs

        description "Add Rake gem."

        on "--[no-]rake"

        default { Container[:configuration].build_rake }

        def call(value = default) = input.merge!(build_rake: value)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-5.1.0 lib/rubysmith/cli/actions/rake.rb
rubysmith-5.0.1 lib/rubysmith/cli/actions/rake.rb