Skip to content

Commit

Permalink
Typo in file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyhavecans committed May 7, 2015
1 parent 0f87792 commit 71498c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
license 'BSD 3-Clause'
description 'Sets up automated chef-server backups using knife-backup'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.2.0'
version '1.2.1'

depends 'cron'
2 changes: 1 addition & 1 deletion providers/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@ def cron_clean_name
end

def cron_clean_command
"find #{ backup_dir } -type f -name \"*.zip\" -mtime +#{ new_resource.retention } -delete"
"find #{ backup_dir } -type f -name \"*.tgz\" -mtime +#{ new_resource.retention } -delete"
end
2 changes: 1 addition & 1 deletion test/integration/default/serverspec/build_jobs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

describe file('/etc/cron.d/dc01-backup-clean') do
its(:content) { should contain('find /var/chef/backup/dc01/') }
its(:content) { should contain('-type f -name "\*\.zip"') }
its(:content) { should contain('-type f -name "\*\.tgz"') }
its(:content) { should contain('-mtime \+31') }
its(:content) { should contain('-delete') }
end
Expand Down

0 comments on commit 71498c9

Please sign in to comment.