class Rustic::Configs::Forget

Attributes

keep_last[R]
keep_monthly[R]
keep_weekly[R]
prune[R]

Public Class Methods

new() click to toggle source
# File lib/rustic/configs/forget.rb, line 8
def initialize
  @prune = false
end

Public Instance Methods

keep(last: nil, weekly: nil, monthly: nil) click to toggle source
# File lib/rustic/configs/forget.rb, line 12
def keep(last: nil, weekly: nil, monthly: nil)
  raise ArgumentError, "keep options must be provided" if [last, weekly, monthly].all?(&:nil?)

  @keep_last = last
  @keep_weekly = weekly
  @keep_monthly = monthly
end
prune!(= @prune = true) click to toggle source
# File lib/rustic/configs/forget.rb, line 20
  def prune! = @prune = true
end