Sha256: c3fef06f97f1f46342e06877f8f0666f5094b3504bbd4d537765c76e20a7cb03
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 oldest backup class Oldest < Expire::Command def initialize(path, options) @path = path @options = options end attr_reader :path def execute(input: $stdin, output: $stdout) output.puts Expire.oldest(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/oldest.rb |
expire-0.2.1 | lib/expire/commands/oldest.rb |
expire-0.2.0 | lib/expire/commands/oldest.rb |