chef-handler-jenkins 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/chef-handler-jenkins.gemspec +1 -1
- data/lib/chef/handler/jenkins.rb +8 -8
- metadata +4 -4
data/README.md
CHANGED
@@ -20,7 +20,8 @@ This approach is best suited if you own the operation environment and want to do
|
|
20
20
|
Use [chef_handler cookbook](http://community.opscode.com/cookbooks/chef_handler) and activate this handler via your recipe:
|
21
21
|
|
22
22
|
chef_gem 'chef-handler-jenkins'
|
23
|
-
|
23
|
+
require 'chef/handler/jenkins'
|
24
|
+
|
24
25
|
chef_handler 'Chef::Handler::Jenkins' do
|
25
26
|
source 'chef/handler/jenkins'
|
26
27
|
arguments :url => 'http://myserver.acme.com/jenkins'
|
data/lib/chef/handler/jenkins.rb
CHANGED
@@ -30,14 +30,14 @@ class Chef
|
|
30
30
|
# res.checksum is SHA1 sum
|
31
31
|
end
|
32
32
|
|
33
|
-
if res.class == Chef::Resource::SaladJenkinsTracking
|
34
|
-
# TODO is this a good way to check the class name?
|
35
|
-
updates << {
|
36
|
-
"path" => res.path,
|
37
|
-
"md5" => res.checksum,
|
38
|
-
"type" => res.class.name
|
39
|
-
}
|
40
|
-
end
|
33
|
+
# if res.class == Chef::Resource::SaladJenkinsTracking
|
34
|
+
# # TODO is this a good way to check the class name?
|
35
|
+
# updates << {
|
36
|
+
# "path" => res.path,
|
37
|
+
# "md5" => res.checksum,
|
38
|
+
# "type" => res.class.name
|
39
|
+
# }
|
40
|
+
# end
|
41
41
|
end
|
42
42
|
|
43
43
|
# add envelop to the data
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-handler-jenkins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: "0.
|
8
|
+
- 3
|
9
|
+
version: "0.3"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Kohsuke Kawaguchi
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2014-
|
17
|
+
date: 2014-09-25 00:00:00 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: chef
|