class Expire::Commands::Newest
Print the newest backup
Attributes
path[R]
Public Class Methods
new(path, options)
click to toggle source
# File lib/expire/commands/newest.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/newest.rb, line 16 def execute(input: $stdin, output: $stdout) output.puts Expire.newest(path).pathname end