Sha256: b2200abe115a8475d24428d158542cda3807d37353619434a2dd6f515452397f

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

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

        using ::Refinements::Structs

        description "Add security."

        on "--[no-]security"

        default { Container[:configuration].build_security }

        def call(value = default) = input.merge!(build_security: 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/security.rb
rubysmith-5.0.1 lib/rubysmith/cli/actions/security.rb