Sha256: ec66964111c0efd119c567488e52c3da17c6927c31982d1fee2b91e08704556a

Contents?: true

Size: 434 Bytes

Versions: 4

Compression:

Stored size: 434 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 => _e
        exit 1
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
expire-0.2.6 lib/expire/commands/purge.rb
expire-0.2.5 lib/expire/commands/purge.rb
expire-0.2.4 lib/expire/commands/purge.rb
expire-0.2.3 lib/expire/commands/purge.rb