chef-handler-cookbook-copy 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'chef-handler-cookbook-copy'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.1'
4
4
  s.author = 'Simple Finance'
5
5
  s.email = 'ops@simple.com'
6
6
  s.homepage = 'http://github.com/SimpleFinance/chef-handler-cookbook-copy'
@@ -45,7 +45,9 @@ class ChefCookbookCopy < Chef::Handler
45
45
  cookbook_paths.each_with_index do |origin, index|
46
46
  dst = ::File.join(@path, "cookbooks-#{index}")
47
47
  FileUtils.mkdir_p(dst, :mode => @mode) if !Dir.exists?(dst)
48
- FileUtils.cp_r(origin, dst)
48
+ Dir.entries(origin).sort[2..-1].each do |cookbook|
49
+ FileUtils.cp_r(::File.join(origin, cookbook), dst)
50
+ end
49
51
  end
50
52
  end
51
53
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-cookbook-copy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-07 00:00:00.000000000 Z
12
+ date: 2013-10-08 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Moves cookbooks to new location at end of run
15
15
  email: ops@simple.com