Sha256: 535f88bfbea11d681911462c190f1d5efd09d92ed48ba7800ae5fe5f2c503d33

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Guard gem."

        ancillary "DEPRECATED: Will be removed in next major version."

        on "--[no-]guard"

        default { Container[:settings].build_guard }

        def call(value = nil) = settings.build_guard = value
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubysmith-7.1.0 lib/rubysmith/cli/actions/guard.rb