Sha256: bb30d67e2d96e9ae7678f59405e2e9456d46a98f48e91fdda721a3336d906ca9

Contents?: true

Size: 425 Bytes

Versions: 8

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add code of conduct documentation."

        on "--[no-]conduct"

        default { Container[:settings].build_conduct }

        def call(boolean) = settings.build_conduct = boolean
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/cli/actions/conduct.rb
rubysmith-7.8.0 lib/rubysmith/cli/actions/conduct.rb
rubysmith-7.7.0 lib/rubysmith/cli/actions/conduct.rb
rubysmith-7.6.0 lib/rubysmith/cli/actions/conduct.rb
rubysmith-7.5.0 lib/rubysmith/cli/actions/conduct.rb
rubysmith-7.4.0 lib/rubysmith/cli/actions/conduct.rb
rubysmith-7.3.0 lib/rubysmith/cli/actions/conduct.rb
rubysmith-7.2.0 lib/rubysmith/cli/actions/conduct.rb