Commit db1a453c084932fa66048675212608167650c0b2

Authored by nollieheel
1 parent 6c9f6051

Version v0.3.1. Fix 'creates' parameter bug in 'aws_tar_extract'.

  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 ## 0.3.0 - 2016-11-25 5 ## 0.3.0 - 2016-11-25
2 ### Changed 6 ### Changed
3 - 'dirs' attribute has been replaced with 'backups' which gives the option of creating multiple instances of the script, each having a different filename. 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,7 +47,7 @@ define :aws_tar_extract,
47 include_recipe 'awscli' 47 include_recipe 'awscli'
48 include_recipe 'tar' 48 include_recipe 'tar'
49 49
50 - unless ::File.exist?(params[:creates]) 50 + unless params[:creates].nil? || ::File.exist?(params[:creates])
51 51
52 directory(tmp_dir) { recursive true } 52 directory(tmp_dir) { recursive true }
53 directory(params[:target_dir]) { recursive true } 53 directory(params[:target_dir]) { recursive true }
@@ -4,7 +4,7 @@ maintainer_email 'sysadmin@chromedia.com' @@ -4,7 +4,7 @@ maintainer_email 'sysadmin@chromedia.com'
4 license 'Apache License' 4 license 'Apache License'
5 description 'Creates a script to backup directories into an S3 bucket.' 5 description 'Creates a script to backup directories into an S3 bucket.'
6 long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 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 depends 'awscli', '~> 1.0.1' 9 depends 'awscli', '~> 1.0.1'
10 depends 'cron', '~> 1.7.4' 10 depends 'cron', '~> 1.7.4'