Class: Expirer::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/expirer/cli.rb

Instance Method Summary collapse

Instance Method Details

#listObject



20
21
22
23
24
25
26
27
# File 'lib/expirer/cli.rb', line 20

def list
  Expirer.configuration.load_from_file!(options[:file])
  Expirer.configuration.load_from_options!(options.to_hash)

  Expirer::List.with_expired do |repository|
    puts Expirer::Reporter.report(repository)
  end
end