Sha256: 71ee2942630cb3590a864ffc17ec8ff02a5a12fdde4727631692d76bee094030

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Guard gem."

        on "--[no-]guard"

        default { Container[:configuration].build_guard }

        def call(value = default) = input.build_guard = 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/guard.rb