class Expire::Commands::Purge

Purge expired backups

Attributes

options[R]
path[R]

Public Class Methods

new(path, options) click to toggle source
# File lib/expire/commands/purge.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/purge.rb, line 16
def execute(input: $stdin, output: $stdout)
  Expire.purge(path, options)
rescue StandardError => _e
  exit 1
end