vagrant-ebcommon 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vagrant-ebcommon/actions/setup_provision.rb +10 -10
- data/lib/vagrant-ebcommon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d6469c25ac5b137124b0c9594966b5714b14f4e
|
4
|
+
data.tar.gz: a9d9140d6113310d885ccd9bc4eadbd18df82b8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93ef1d36f30a706546836393edc717a3059bf945f42822aac4242974a0dd0c894d1c0eaca3b349a1df77e529b6901968aa808d52bb4fd3626dac30d3939da29a
|
7
|
+
data.tar.gz: 1c07561e75e7de6ef2db79018bddb3ffd741bd3c0c69d022930977c9668ff37e489e6c4cc4a75237013b2028dab96d49ab4489393b81cfe5dfd10b108439b2d1
|
@@ -40,19 +40,19 @@ module VagrantPlugins
|
|
40
40
|
|
41
41
|
# Copy over our git commit hooks
|
42
42
|
def setup_git_hooks
|
43
|
-
plugin_hooks_dir = File.expand_path File.join(File.dirname(__FILE__), '..', 'files', 'git_hooks')
|
44
|
-
git_hooks = Dir.entries(plugin_hooks_dir).select {|f| !File.directory? f}
|
45
43
|
if @ebcommon.git_hook_repos
|
44
|
+
plugin_hooks_dir = File.expand_path File.join(File.dirname(__FILE__), '..', 'files', 'git_hooks')
|
45
|
+
git_hooks = Dir.entries(plugin_hooks_dir).select {|f| !File.directory? f}
|
46
46
|
@env[:ui].info 'Copying over git commit hooks...'
|
47
|
-
end
|
48
47
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
48
|
+
@ebcommon.git_hook_repos.each do |repo_path|
|
49
|
+
target_directory = File.join @ebcommon.git_hook_root_dir, repo_path, '.git', 'hooks'
|
50
|
+
if File.directory? target_directory
|
51
|
+
git_hooks.each do |hook|
|
52
|
+
@env[:ui].success "Copying over git hook: #{hook} to #{target_directory}"
|
53
|
+
source = File.join plugin_hooks_dir, hook
|
54
|
+
FileUtils.cp source, target_directory
|
55
|
+
end
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-ebcommon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Hahn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|