vagrant-ebcommon 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18eac42361dbaaa05741efb88013984cd30c2cf9
4
- data.tar.gz: 733159fe8d8c5ee3aed42782230b0be4476c3704
3
+ metadata.gz: f0151d959c362384a92f4bf52e8391bcee6c4d28
4
+ data.tar.gz: afc9aa340870d8f2e6bf5096df29c7f2bd37164c
5
5
  SHA512:
6
- metadata.gz: 05b45bb2c510b61bfaa712ef86825bfbee76874d69dd742dc22200d77dfe4b15e331a48eb80e326053f95b4c6a6f4197c672a522aae876cd938c8abc68345a45
7
- data.tar.gz: 75ee9ef3c140d565e622852089811f397db9baf14922ec4df43d7250439df72e6329113903960c6c1d51b18892e7a550e0203ffa11462fc6b5b4f3037ff6561e
6
+ metadata.gz: 0848f25162bc52bb3bc9c7701d6a9ce39983a478f5dfa46fd327ac8f84dd876d1cf30b851f078580eefc3a836cf71112dc7742285f0e96b2794278ec97605184
7
+ data.tar.gz: 68d209327436ab0bb8e71636f6fc024e52352f07a4501fee53b4e892bc77d1c11508849dbe771e1e338b07cae506b65df7f001e04c4e5b887f22d76967d4909b
@@ -48,18 +48,19 @@ module VagrantPlugins
48
48
  def setup_git_hooks
49
49
  if @ebcommon.git_hook_repos
50
50
  plugin_hooks_dir = File.expand_path File.join(File.dirname(__FILE__), '..', 'files', 'git_hooks')
51
- FileUtils.mkdir(plugin_hooks_dir) unless File.directory?(plugin_hooks_dir)
52
51
  git_hooks = Dir.entries(plugin_hooks_dir).select {|f| !File.directory? f}
53
52
  @env[:ui].info 'Copying over git commit hooks...'
54
53
 
55
54
  @ebcommon.git_hook_repos.each do |repo_path|
56
- target_directory = File.join @ebcommon.git_hook_root_dir, repo_path, '.git', 'hooks'
57
- if File.directory? target_directory
58
- git_hooks.each do |hook|
59
- @env[:ui].success "Copying over git hook: #{hook} to #{target_directory}"
60
- source = File.join plugin_hooks_dir, hook
61
- FileUtils.cp source, target_directory
62
- end
55
+ target_hooks_dir = File.join @ebcommon.git_hook_root_dir, repo_path, '.git', 'hooks'
56
+ if not File.directory? target_hooks_dir
57
+ @env[:ui].info "Creating #{target_hooks_dir} directory..."
58
+ FileUtils.mkdir target_hooks_dir
59
+ end
60
+ git_hooks.each do |hook|
61
+ @env[:ui].success "Copying over git hook: #{hook} to #{target_hooks_dir}"
62
+ source = File.join plugin_hooks_dir, hook
63
+ FileUtils.cp source, target_hooks_dir
63
64
  end
64
65
  end
65
66
  end
@@ -14,10 +14,10 @@ end
14
14
  if !ARGV[0].empty?
15
15
  # Collect all the tests from the YAML
16
16
  tests = ARGV.map{ |file| data[file] }.compact()
17
- if tests.any? && tests[0].nil?
17
+ if tests[0].nil?
18
18
  # No tests to run, simply exit.
19
19
  exit 0
20
- elsif tests[0].length < 50
20
+ elsif tests.any? && tests[0].length < 50
21
21
  puts "The following acceptance tests are affected by your changes\n"
22
22
  tests[0].each do |t|
23
23
  puts "- #{t}"
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Ebcommon
3
- VERSION = "0.5.5"
3
+ VERSION = "0.5.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-ebcommon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hahn
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.2.2
97
+ rubygems_version: 2.0.14
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Vagrant plugin to execute various Eventbrite workflows.