Sha256: 77db95227e910eeabd67287e990041aaac1f9fe4c756d3c0b7c2d1e5504d8b5e
Contents?: true
Size: 448 Bytes
Versions: 3
Compression:
Stored size: 448 Bytes
Contents
# frozen_string_literal: true require_relative '../command' module Expire module Commands # Purge expired backups class Purge < Expire::Command def initialize(path, options) @path = path @options = options end attr_reader :path, :options def execute(input: $stdin, output: $stdout) Expire.purge(path, options) rescue StandardError => _e exit 1 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
expire-0.2.2 | lib/expire/commands/purge.rb |
expire-0.2.1 | lib/expire/commands/purge.rb |
expire-0.2.0 | lib/expire/commands/purge.rb |