Sha256: c3a9476a351f31832c8f1c27e8e74099e4ed9db24917250883729385d4ca96bc
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
# frozen_string_literal: true class Rustic::CommandBuilders::Forget def initialize(config) @config = config end def build config = @config.forget_config raise Rustic::CommandBuilder::MissingConfigError, "Command `forget` misses it's configuration" if config.nil? [ "forget", config.keep_last ? "--keep-last=#{config.keep_last}" : nil, config.keep_weekly ? "--keep-weekly=#{config.keep_weekly}" : nil, config.keep_monthly ? "--keep-monthly=#{config.keep_monthly}" : nil, config.prune ? "--prune" : nil ].compact end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rustic-0.3.0 | lib/rustic/command_builders/forget.rb |