class Expire::CLI
Command
line interface rubocop:disable Metrics/ClassLength
Public Class Methods
exit_on_failure?()
click to toggle source
# File lib/expire/cli.rb, line 216 def self.exit_on_failure? true end
Public Instance Methods
newest(path)
click to toggle source
# File lib/expire/cli.rb, line 85 def newest(path) if options[:help] invoke :help, ['newest'] else require_relative 'commands/newest' Expire::Commands::Newest.new(path, options).execute end end
oldest(path)
click to toggle source
# File lib/expire/cli.rb, line 73 def oldest(path) if options[:help] invoke :help, ['oldest'] else require_relative 'commands/oldest' Expire::Commands::Oldest.new(path, options).execute end end
purge(path)
click to toggle source
# File lib/expire/cli.rb, line 204 def purge(path) if options[:help] invoke :help, ['purge'] else require_relative 'commands/purge' Expire::Commands::Purge.new(path, options).execute end end
remove(path)
click to toggle source
# File lib/expire/cli.rb, line 61 def remove(path) if options[:help] invoke :help, ['remove'] else require_relative 'commands/remove' Expire::Commands::Remove.new(path: path).execute end end
rule_classes(*)
click to toggle source
# File lib/expire/cli.rb, line 49 def rule_classes(*) if options[:help] invoke :help, ['rule_classes'] else require_relative 'commands/rule_classes' Expire::Commands::RuleClasses.new(options).execute end end
rule_names(*)
click to toggle source
# File lib/expire/cli.rb, line 33 def rule_names(*) if options[:help] invoke :help, ['rule_names'] else require_relative 'commands/rule_names' Expire::Commands::RuleNames.new(options).execute end end
rule_option_names(*)
click to toggle source
# File lib/expire/cli.rb, line 17 def rule_option_names(*) if options[:help] invoke :help, ['rule_option_names'] else require_relative 'commands/rule_option_names' Expire::Commands::RuleOptionNames.new(options).execute end end