class Expire::Commands::Oldest

Print the oldest backup

Attributes

path[R]

Public Class Methods

new(path, options) click to toggle source
# File lib/expire/commands/oldest.rb, line 9
def initialize(path, options)
  @path = path
  @options = options
end

Public Instance Methods

execute(input: $stdin, output: $stdout) click to toggle source
# File lib/expire/commands/oldest.rb, line 16
def execute(input: $stdin, output: $stdout)
  output.puts Expire.oldest(path).pathname
end