Module: Expire
- Defined in:
- lib/expire.rb,
lib/expire/cli.rb,
lib/expire/rules.rb,
lib/expire/backup.rb,
lib/expire/command.rb,
lib/expire/version.rb,
lib/expire/rule_base.rb,
lib/expire/rule_list.rb,
lib/expire/playground.rb,
lib/expire/backup_list.rb,
lib/expire/report_base.rb,
lib/expire/report_kept.rb,
lib/expire/report_null.rb,
lib/expire/numerus_unit.rb,
lib/expire/purge_service.rb,
lib/expire/report_simple.rb,
lib/expire/commands/purge.rb,
lib/expire/no_rules_error.rb,
lib/expire/report_expired.rb,
lib/expire/commands/newest.rb,
lib/expire/commands/oldest.rb,
lib/expire/commands/remove.rb,
lib/expire/keep_daily_rule.rb,
lib/expire/report_enhanced.rb,
lib/expire/from_range_value.rb,
lib/expire/keep_hourly_rule.rb,
lib/expire/keep_weekly_rule.rb,
lib/expire/keep_yearly_rule.rb,
lib/expire/no_backups_error.rb,
lib/expire/keep_monthly_rule.rb,
lib/expire/invalid_path_error.rb,
lib/expire/unknown_rule_error.rb,
lib/expire/commands/rule_names.rb,
lib/expire/keep_daily_for_rule.rb,
lib/expire/refine_all_and_none.rb,
lib/expire/keep_hourly_for_rule.rb,
lib/expire/keep_weekly_for_rule.rb,
lib/expire/keep_yearly_for_rule.rb,
lib/expire/commands/rule_classes.rb,
lib/expire/keep_monthly_for_rule.rb,
lib/expire/keep_most_recent_rule.rb,
lib/expire/backup_from_path_service.rb,
lib/expire/keep_adjective_rule_base.rb,
lib/expire/all_backups_expired_error.rb,
lib/expire/keep_most_recent_for_rule.rb,
lib/expire/path_already_exists_error.rb,
lib/expire/commands/rule_option_names.rb,
lib/expire/from_now_keep_daily_for_rule.rb,
lib/expire/generate_backup_list_service.rb,
lib/expire/keep_adjective_for_rule_base.rb,
lib/expire/from_now_keep_hourly_for_rule.rb,
lib/expire/from_now_keep_weekly_for_rule.rb,
lib/expire/from_now_keep_yearly_for_rule.rb,
lib/expire/from_now_keep_monthly_for_rule.rb,
lib/expire/from_now_keep_most_recent_for_rule.rb,
lib/expire/from_now_keep_adjective_for_rule_base.rb
Overview
Expire backup directories
Defined Under Namespace
Modules: Commands, FromRangeValue, NumerusUnit, RefineAllAndNone
Classes: AllBackupsExpiredError, Backup, BackupFromPathService, BackupList, CLI, Command, Error, FromNowKeepAdjectiveForRuleBase, FromNowKeepDailyForRule, FromNowKeepHourlyForRule, FromNowKeepMonthlyForRule, FromNowKeepMostRecentForRule, FromNowKeepWeeklyForRule, FromNowKeepYearlyForRule, GenerateBackupListService, InvalidPathError, KeepAdjectiveForRuleBase, KeepAdjectiveRuleBase, KeepDailyForRule, KeepDailyRule, KeepHourlyForRule, KeepHourlyRule, KeepMonthlyForRule, KeepMonthlyRule, KeepMostRecentForRule, KeepMostRecentRule, KeepWeeklyForRule, KeepWeeklyRule, KeepYearlyForRule, KeepYearlyRule, NoBackupsError, NoRulesError, PathAlreadyExistsError, Playground, PurgeService, ReportBase, ReportEnhanced, ReportExpired, ReportKept, ReportNull, ReportSimple, RuleBase, RuleList, Rules, UnknownRuleError
Constant Summary
collapse
- MAJOR =
0
- MINOR =
2
- TINY =
6
- VERSION =
[MAJOR, MINOR, TINY].compact * "."
Class Method Summary
collapse
Class Method Details
.create_playground(base) ⇒ Object
20
21
22
|
# File 'lib/expire.rb', line 20
def self.create_playground(base)
Playground.create(base)
end
|
.purge(path, options) ⇒ Object
32
33
34
|
# File 'lib/expire.rb', line 32
def self.purge(path, options)
PurgeService.call(path, options)
end
|
.remove(path) ⇒ Object
36
37
38
|
# File 'lib/expire.rb', line 36
def self.remove(path)
FileUtils.rm_r(path)
end
|
.rule_option_names ⇒ Object