sambot 0.1.156 → 0.1.157

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: 3de5fcaf151b41505559a4d204481f229118f118
4
- data.tar.gz: d25490b271448070e57db930272712cae8b26477
3
+ metadata.gz: 4b0e858e89a1138d825628b05f0c7717f2db25b4
4
+ data.tar.gz: 352fddee99a4f6ad3512f34a9ecb86eb382a3e4d
5
5
  SHA512:
6
- metadata.gz: fe852c92d99ace63609de2e77aec1a17e098e3481d1a03d0b765df2d458140b0908b9b8d90b53625acb7bc51ebe78f2ef98bf88f7338e300bc1e84f68c833627
7
- data.tar.gz: fa91b1b15ad92c904d4bed6c86821922a76820e03ea5d0a4ea7ca0378e5575b6ea401826f304e2727c2b2941301a5fb03f6ac56b56cd7675dc98a49707fbd21f
6
+ metadata.gz: f6d1abacdfcbcb0f1a2229328ec10041acd5f276863eac604f0c48a86659069677ec4f8d6bf80f709ae9efd978ef1219d8666c5fe4bc08f047908cbd556b4d15
7
+ data.tar.gz: 9e43735b16cebb948bc095eeddf3075f2e99f5ad4a7b6711476318ef487186509891745fbf81d15d1791d558493ce0eb6e2c467f2598af2c5f7bd664a25188d5
@@ -5,11 +5,13 @@ module Sambot
5
5
  class Hooks
6
6
 
7
7
  def self.copy
8
- working_path = '.git/hooks/pre-push'
9
- template_path = Template.new('pre-push').path
10
- File.delete(working_path) if File.exist?(working_path)
11
- FileUtils.cp(template_path, working_path)
12
- UI.debug("The pre-push Git hook has been added to the cookbook.")
8
+ ['pre-push', 'pre-commit'].each do |hook|
9
+ working_path = ".git/hooks/#{hook}"
10
+ template_path = Template.new(hook).path
11
+ File.delete(working_path) if File.exist?(working_path)
12
+ FileUtils.cp(template_path, working_path)
13
+ UI.debug("The #{hook} Git hook has been added to the cookbook.")
14
+ end
13
15
  end
14
16
 
15
17
  end
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+ chef exec sambot bump
3
+ git add .config.yml
@@ -3,4 +3,3 @@ chef exec sambot cookbook build
3
3
  chef exec foodcritic .
4
4
  chef exec cookstyle .
5
5
  chef exec sambot cookbook clean
6
- chef exec sambot bump
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sambot
4
- VERSION = '0.1.156'.freeze
4
+ VERSION = '0.1.157'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sambot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.156
4
+ version: 0.1.157
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier Kouame
@@ -458,6 +458,7 @@ files:
458
458
  - lib/sambot/templates/local_bootstrap.ps1
459
459
  - lib/sambot/templates/local_bootstrap.sh
460
460
  - lib/sambot/templates/metadata.rb.erb
461
+ - lib/sambot/templates/pre-commit
461
462
  - lib/sambot/templates/pre-push
462
463
  - lib/sambot/templates/teamcity.sh.erb
463
464
  - lib/sambot/templates/winrm_config