Commit db1a453c084932fa66048675212608167650c0b2
1 parent
6c9f6051
Version v0.3.1. Fix 'creates' parameter bug in 'aws_tar_extract'.
Showing
3 changed files
with
6 additions
and
2 deletions
1 | +## 0.3.1 - 2016-11-28 | |
2 | +### Fixed | |
3 | +- Fixed definition for 'aws_tar_extract' where it raises an exception if no 'creates' parameter is given. | |
4 | + | |
1 | 5 | ## 0.3.0 - 2016-11-25 |
2 | 6 | ### Changed |
3 | 7 | - 'dirs' attribute has been replaced with 'backups' which gives the option of creating multiple instances of the script, each having a different filename. | ... | ... |
... | ... | @@ -47,7 +47,7 @@ define :aws_tar_extract, |
47 | 47 | include_recipe 'awscli' |
48 | 48 | include_recipe 'tar' |
49 | 49 | |
50 | - unless ::File.exist?(params[:creates]) | |
50 | + unless params[:creates].nil? || ::File.exist?(params[:creates]) | |
51 | 51 | |
52 | 52 | directory(tmp_dir) { recursive true } |
53 | 53 | directory(params[:target_dir]) { recursive true } | ... | ... |
... | ... | @@ -4,7 +4,7 @@ maintainer_email 'sysadmin@chromedia.com' |
4 | 4 | license 'Apache License' |
5 | 5 | description 'Creates a script to backup directories into an S3 bucket.' |
6 | 6 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) |
7 | -version '0.3.0' | |
7 | +version '0.3.1' | |
8 | 8 | |
9 | 9 | depends 'awscli', '~> 1.0.1' |
10 | 10 | depends 'cron', '~> 1.7.4' | ... | ... |