kafo 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of kafo might be problematic. Click here for more details.

data/README.md CHANGED
@@ -348,8 +348,7 @@ right version you can write a simple script and put it into checks directory.
348
348
  All files found there will be ran and if any has non-zero exit code, kafo
349
349
  wont execute puppet.
350
350
 
351
- Everything on STDOUT is logged in debug level, everything on STDERR is logged
352
- in error level.
351
+ Everything on STDOUT and STDERR is logged in error level.
353
352
 
354
353
  Example shell script which checks java version
355
354
 
@@ -1,6 +1,4 @@
1
1
  # encoding: UTF-8
2
- # we require separate STDERR
3
- require 'open3'
4
2
 
5
3
  class SystemChecker
6
4
  def self.check
@@ -18,13 +16,9 @@ class SystemChecker
18
16
  def check
19
17
  @checkers.map! do |checker|
20
18
  logger.debug "Executing checker: #{checker}"
21
- Open3.popen3(checker) { |stdin, stdout, stderr, wait_thr|
22
- stdout = stdout.read
23
- stderr = stderr.read
24
- logger.debug stdout unless stdout.empty?
25
- logger.error stderr unless stderr.empty?
26
- wait_thr.value.success?
27
- }
19
+ stdout = `#{checker}`
20
+ logger.error stdout unless stdout.empty?
21
+ $?.exitstatus == 0
28
22
  end
29
23
 
30
24
  @checkers.all?
data/lib/kafo/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  module Kafo
3
- VERSION = "0.0.13"
3
+ VERSION = "0.0.14"
4
4
  end
metadata CHANGED
@@ -1,137 +1,152 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: kafo
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.13
3
+ version: !ruby/object:Gem::Version
4
+ hash: 3
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 14
10
+ version: 0.0.14
5
11
  platform: ruby
6
- authors:
12
+ authors:
7
13
  - Marek Hulan
8
14
  autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
- date: 2013-09-12 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-09-13 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
14
22
  name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: '1.3'
20
- type: :development
21
23
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
24
27
  - - ~>
25
- - !ruby/object:Gem::Version
26
- version: '1.3'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - '>='
32
- - !ruby/object:Gem::Version
33
- version: '0'
28
+ - !ruby/object:Gem::Version
29
+ hash: 9
30
+ segments:
31
+ - 1
32
+ - 3
33
+ version: "1.3"
34
34
  type: :development
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: rake
35
38
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - '>='
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: minitest
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- version: 4.7.5
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
48
48
  type: :development
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: minitest
49
52
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
52
56
  - - ~>
53
- - !ruby/object:Gem::Version
57
+ - !ruby/object:Gem::Version
58
+ hash: 41
59
+ segments:
60
+ - 4
61
+ - 7
62
+ - 5
54
63
  version: 4.7.5
55
- - !ruby/object:Gem::Dependency
64
+ type: :development
65
+ version_requirements: *id003
66
+ - !ruby/object:Gem::Dependency
56
67
  name: puppet
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
68
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '>='
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: rdoc
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '>='
74
- - !ruby/object:Gem::Version
75
- version: 3.9.0
69
+ requirement: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 0
77
+ version: "0"
76
78
  type: :runtime
79
+ version_requirements: *id004
80
+ - !ruby/object:Gem::Dependency
81
+ name: rdoc
77
82
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
83
+ requirement: &id005 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ hash: 35
89
+ segments:
90
+ - 3
91
+ - 9
92
+ - 0
82
93
  version: 3.9.0
83
- - !ruby/object:Gem::Dependency
84
- name: logging
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
94
  type: :runtime
95
+ version_requirements: *id005
96
+ - !ruby/object:Gem::Dependency
97
+ name: logging
91
98
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: clamp
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '>='
102
- - !ruby/object:Gem::Version
103
- version: '0'
99
+ requirement: &id006 !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ hash: 3
105
+ segments:
106
+ - 0
107
+ version: "0"
104
108
  type: :runtime
109
+ version_requirements: *id006
110
+ - !ruby/object:Gem::Dependency
111
+ name: clamp
105
112
  prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: highline
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
113
+ requirement: &id007 !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ hash: 3
119
+ segments:
120
+ - 0
121
+ version: "0"
118
122
  type: :runtime
123
+ version_requirements: *id007
124
+ - !ruby/object:Gem::Dependency
125
+ name: highline
119
126
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '>='
123
- - !ruby/object:Gem::Version
124
- version: '0'
127
+ requirement: &id008 !ruby/object:Gem::Requirement
128
+ none: false
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ hash: 3
133
+ segments:
134
+ - 0
135
+ version: "0"
136
+ type: :runtime
137
+ version_requirements: *id008
125
138
  description: A gem for making installations based on puppet user friendly
126
- email:
139
+ email:
127
140
  - ares@igloonet.cz
128
- executables:
141
+ executables:
129
142
  - kafo-configure
130
143
  - kafo-export-params
131
144
  - kafofy
132
145
  extensions: []
146
+
133
147
  extra_rdoc_files: []
134
- files:
148
+
149
+ files:
135
150
  - bin/kafo-configure
136
151
  - bin/kafo-export-params
137
152
  - bin/kafofy
@@ -181,29 +196,39 @@ files:
181
196
  - LICENSE.txt
182
197
  - Rakefile
183
198
  - README.md
199
+ has_rdoc: true
184
200
  homepage: https://github.com/theforeman/kafo
185
- licenses:
201
+ licenses:
186
202
  - GPLv3+
187
- metadata: {}
188
203
  post_install_message:
189
204
  rdoc_options: []
190
- require_paths:
205
+
206
+ require_paths:
191
207
  - lib
192
- required_ruby_version: !ruby/object:Gem::Requirement
193
- requirements:
194
- - - '>='
195
- - !ruby/object:Gem::Version
196
- version: '0'
197
- required_rubygems_version: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - '>='
200
- - !ruby/object:Gem::Version
201
- version: '0'
208
+ required_ruby_version: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ hash: 3
214
+ segments:
215
+ - 0
216
+ version: "0"
217
+ required_rubygems_version: !ruby/object:Gem::Requirement
218
+ none: false
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ hash: 3
223
+ segments:
224
+ - 0
225
+ version: "0"
202
226
  requirements: []
227
+
203
228
  rubyforge_project:
204
- rubygems_version: 2.0.3
229
+ rubygems_version: 1.6.2
205
230
  signing_key:
206
- specification_version: 4
207
- summary: If you write puppet modules for installing your software, you can use kafo
208
- to create powerful installer
231
+ specification_version: 3
232
+ summary: If you write puppet modules for installing your software, you can use kafo to create powerful installer
209
233
  test_files: []
234
+
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 541f62325d16907e10fd685ba52feef25b508de8
4
- data.tar.gz: e28b1ff37b0e106ac9102809ba9f5ffe8844c67a
5
- SHA512:
6
- metadata.gz: 715a6ac0b8a5dbd3496b03e9b7898c11386ed7fbb0d64a98e1c8030e5d9bd6c6becc77bbb3e494d4e43914c5ac91272ea826e99ce8d385341fc16c830d28bba2
7
- data.tar.gz: bbe4615a666ca4fc1e4ac3f8afabe8eddb28fe9d10890541d9816853b721f07918a2056d9dab0e530bc9937ecfe2113d9452c4dd785931529ed336fe24d1a636