Sha256: 49f087c60add350d788c3e4c13292306c3912a1331b255214ec0ed1cd64cb1ab

Contents?: true

Size: 403 Bytes

Versions: 4

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true

require_relative "../command"

module Expire
  module Commands
    # Print the names of all rules
    class RuleNames < Expire::Command
      def initialize(options)
        @options = options
      end

      def execute(input: $stdin, output: $stdout)
        Expire.rule_names.each do |rule_name|
          output.puts rule_name
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
expire-0.2.6 lib/expire/commands/rule_names.rb
expire-0.2.5 lib/expire/commands/rule_names.rb
expire-0.2.4 lib/expire/commands/rule_names.rb
expire-0.2.3 lib/expire/commands/rule_names.rb