Class: Expire::Commands::RuleNames

Inherits:
Expire::Command show all
Defined in:
lib/expire/commands/rule_names.rb

Overview

Print the names of all rules

Instance Method Summary collapse

Methods inherited from Expire::Command

#command, #cursor, #editor, #exec_exist?, #generator, #pager, #platform, #prompt, #screen, #which

Constructor Details

#initialize(options) ⇒ RuleNames

Returns a new instance of RuleNames.



9
10
11
# File 'lib/expire/commands/rule_names.rb', line 9

def initialize(options)
  @options = options
end

Instance Method Details

#execute(input: $stdin, output: $stdout) ⇒ Object



13
14
15
16
17
# File 'lib/expire/commands/rule_names.rb', line 13

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