ey_enzyme 0.9.39 → 0.9.40
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ey_enzyme/cookbook_set.rb +24 -0
- data/lib/ey_enzyme/version.rb +1 -1
- metadata +5 -67
@@ -57,6 +57,7 @@ module EY::Enzyme
|
|
57
57
|
@logger.info "Finished #{@name} chef run"
|
58
58
|
else
|
59
59
|
@logger.error("#{@name} chef run failed. Reporting error")
|
60
|
+
@logger.error("#{@name} error output: #{chef_error_from_log}")
|
60
61
|
raise DeployError, "#{@name} chef run failed"
|
61
62
|
end
|
62
63
|
ensure
|
@@ -89,6 +90,29 @@ module EY::Enzyme
|
|
89
90
|
main? ? "/etc/chef/solo.rb" : "/etc/chef-custom/solo.rb"
|
90
91
|
end
|
91
92
|
|
93
|
+
def chef_error_from_log
|
94
|
+
unless File.exist?(@chef_log)
|
95
|
+
return "(log doesn't exist)"
|
96
|
+
end
|
97
|
+
|
98
|
+
error = ""
|
99
|
+
saw_error = false
|
100
|
+
|
101
|
+
File.open(@chef_log) do |f|
|
102
|
+
while line = f.gets
|
103
|
+
if line =~ / ERROR: /
|
104
|
+
saw_error = true
|
105
|
+
end
|
106
|
+
|
107
|
+
if saw_error
|
108
|
+
error << line
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
error
|
114
|
+
end
|
115
|
+
|
92
116
|
def instance_id_valid?
|
93
117
|
local_instance_id == @opts[:instance_id]
|
94
118
|
end
|
data/lib/ey_enzyme/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ey_enzyme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 117
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 9
|
9
|
-
- 39
|
10
|
-
version: 0.9.39
|
5
|
+
version: 0.9.40
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Engine Yard Inc.
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2010-02-25 00:00:00 -
|
13
|
+
date: 2010-02-25 00:00:00 -04:00
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
16
|
- !ruby/object:Gem::Dependency
|
@@ -26,9 +21,6 @@ dependencies:
|
|
26
21
|
requirements:
|
27
22
|
- - ">="
|
28
23
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
24
|
version: "0"
|
33
25
|
type: :runtime
|
34
26
|
version_requirements: *id001
|
@@ -40,11 +32,6 @@ dependencies:
|
|
40
32
|
requirements:
|
41
33
|
- - ~>
|
42
34
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 13
|
44
|
-
segments:
|
45
|
-
- 1
|
46
|
-
- 6
|
47
|
-
- 1
|
48
35
|
version: 1.6.1
|
49
36
|
type: :runtime
|
50
37
|
version_requirements: *id002
|
@@ -56,12 +43,6 @@ dependencies:
|
|
56
43
|
requirements:
|
57
44
|
- - "="
|
58
45
|
- !ruby/object:Gem::Version
|
59
|
-
hash: 123
|
60
|
-
segments:
|
61
|
-
- 0
|
62
|
-
- 6
|
63
|
-
- 0
|
64
|
-
- 2
|
65
46
|
version: 0.6.0.2
|
66
47
|
type: :runtime
|
67
48
|
version_requirements: *id003
|
@@ -73,11 +54,6 @@ dependencies:
|
|
73
54
|
requirements:
|
74
55
|
- - "="
|
75
56
|
- !ruby/object:Gem::Version
|
76
|
-
hash: 29
|
77
|
-
segments:
|
78
|
-
- 0
|
79
|
-
- 2
|
80
|
-
- 5
|
81
57
|
version: 0.2.5
|
82
58
|
type: :runtime
|
83
59
|
version_requirements: *id004
|
@@ -89,11 +65,6 @@ dependencies:
|
|
89
65
|
requirements:
|
90
66
|
- - ~>
|
91
67
|
- !ruby/object:Gem::Version
|
92
|
-
hash: 29
|
93
|
-
segments:
|
94
|
-
- 0
|
95
|
-
- 2
|
96
|
-
- 5
|
97
68
|
version: 0.2.5
|
98
69
|
type: :runtime
|
99
70
|
version_requirements: *id005
|
@@ -105,9 +76,6 @@ dependencies:
|
|
105
76
|
requirements:
|
106
77
|
- - ">="
|
107
78
|
- !ruby/object:Gem::Version
|
108
|
-
hash: 3
|
109
|
-
segments:
|
110
|
-
- 0
|
111
79
|
version: "0"
|
112
80
|
type: :development
|
113
81
|
version_requirements: *id006
|
@@ -119,55 +87,31 @@ dependencies:
|
|
119
87
|
requirements:
|
120
88
|
- - ~>
|
121
89
|
- !ruby/object:Gem::Version
|
122
|
-
hash: 11
|
123
|
-
segments:
|
124
|
-
- 1
|
125
|
-
- 2
|
126
90
|
version: "1.2"
|
127
91
|
type: :development
|
128
92
|
version_requirements: *id007
|
129
93
|
- !ruby/object:Gem::Dependency
|
130
|
-
name:
|
94
|
+
name: fakeweb
|
131
95
|
prerelease: false
|
132
96
|
requirement: &id008 !ruby/object:Gem::Requirement
|
133
97
|
none: false
|
134
98
|
requirements:
|
135
99
|
- - ">="
|
136
100
|
- !ruby/object:Gem::Version
|
137
|
-
hash: 3
|
138
|
-
segments:
|
139
|
-
- 0
|
140
101
|
version: "0"
|
141
102
|
type: :development
|
142
103
|
version_requirements: *id008
|
143
104
|
- !ruby/object:Gem::Dependency
|
144
|
-
name: fakeweb
|
105
|
+
name: fakeweb-matcher
|
145
106
|
prerelease: false
|
146
107
|
requirement: &id009 !ruby/object:Gem::Requirement
|
147
108
|
none: false
|
148
109
|
requirements:
|
149
110
|
- - ">="
|
150
111
|
- !ruby/object:Gem::Version
|
151
|
-
hash: 3
|
152
|
-
segments:
|
153
|
-
- 0
|
154
112
|
version: "0"
|
155
113
|
type: :development
|
156
114
|
version_requirements: *id009
|
157
|
-
- !ruby/object:Gem::Dependency
|
158
|
-
name: fakeweb-matcher
|
159
|
-
prerelease: false
|
160
|
-
requirement: &id010 !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
|
-
requirements:
|
163
|
-
- - ">="
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
hash: 3
|
166
|
-
segments:
|
167
|
-
- 0
|
168
|
-
version: "0"
|
169
|
-
type: :development
|
170
|
-
version_requirements: *id010
|
171
115
|
description: Gem for kicking off chef recipes
|
172
116
|
email: ninja@engineyard.com
|
173
117
|
executables:
|
@@ -206,23 +150,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
206
150
|
requirements:
|
207
151
|
- - ">="
|
208
152
|
- !ruby/object:Gem::Version
|
209
|
-
hash: 3
|
210
|
-
segments:
|
211
|
-
- 0
|
212
153
|
version: "0"
|
213
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
155
|
none: false
|
215
156
|
requirements:
|
216
157
|
- - ">="
|
217
158
|
- !ruby/object:Gem::Version
|
218
|
-
hash: 3
|
219
|
-
segments:
|
220
|
-
- 0
|
221
159
|
version: "0"
|
222
160
|
requirements: []
|
223
161
|
|
224
162
|
rubyforge_project:
|
225
|
-
rubygems_version: 1.
|
163
|
+
rubygems_version: 1.5.2
|
226
164
|
signing_key:
|
227
165
|
specification_version: 3
|
228
166
|
summary: Gem for kicking off chef recipes
|