sambot 0.1.156 → 0.1.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sambot/chef/hooks.rb +7 -5
- data/lib/sambot/templates/pre-commit +3 -0
- data/lib/sambot/templates/pre-push +0 -1
- data/lib/sambot/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b0e858e89a1138d825628b05f0c7717f2db25b4
|
|
4
|
+
data.tar.gz: 352fddee99a4f6ad3512f34a9ecb86eb382a3e4d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6d1abacdfcbcb0f1a2229328ec10041acd5f276863eac604f0c48a86659069677ec4f8d6bf80f709ae9efd978ef1219d8666c5fe4bc08f047908cbd556b4d15
|
|
7
|
+
data.tar.gz: 9e43735b16cebb948bc095eeddf3075f2e99f5ad4a7b6711476318ef487186509891745fbf81d15d1791d558493ce0eb6e2c467f2598af2c5f7bd664a25188d5
|
data/lib/sambot/chef/hooks.rb
CHANGED
|
@@ -5,11 +5,13 @@ module Sambot
|
|
|
5
5
|
class Hooks
|
|
6
6
|
|
|
7
7
|
def self.copy
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
data/lib/sambot/version.rb
CHANGED
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.
|
|
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
|