Sha256: e06e52f25cc0480aba41dc8613980c71fe0c81e48d4dead25662c777b021c48e

Contents?: true

Size: 411 Bytes

Versions: 2

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add security."

        on "--[no-]security"

        default { Container[:settings].build_security }

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-7.1.0 lib/rubysmith/cli/actions/security.rb
rubysmith-7.0.0 lib/rubysmith/cli/actions/security.rb