Sha256: ec6daee6228c522274739b7d96c1b433e80057729b9f42be949e99ed7ee5cb21
Contents?: true
Size: 406 Bytes
Versions: 3
Compression:
Stored size: 406 Bytes
Contents
# frozen_string_literal: true require_relative '../command' module Expire module Commands # Print the newest backup class Newest < Expire::Command def initialize(path, options) @path = path @options = options end attr_reader :path def execute(input: $stdin, output: $stdout) output.puts Expire.newest(path).pathname end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
expire-0.2.2 | lib/expire/commands/newest.rb |
expire-0.2.1 | lib/expire/commands/newest.rb |
expire-0.2.0 | lib/expire/commands/newest.rb |