Sha256: 312a444fab3e252283a8976ca5559bcc6474c2d11e339af3b64f55d2ab8e5fb2

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Rake gem."

        on "--[no-]rake"

        default { Container[:configuration].build_rake }

        def call(value = default) = input.build_rake = value
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubysmith-5.2.0 lib/rubysmith/cli/actions/rake.rb