engineyard-serverside 1.6.0.pre3 → 1.6.0.pre4
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.
@@ -29,13 +29,20 @@ module EY
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def put_to_io(severity, msg)
|
32
|
-
|
32
|
+
case severity
|
33
|
+
when "DEBUG"
|
33
34
|
if @verbose
|
34
35
|
@stdout << msg
|
35
36
|
end
|
36
|
-
|
37
|
+
when "INFO"
|
37
38
|
# Need to differentiate info messages more when we're running in verbose mode
|
38
|
-
@stdout << (@verbose ? "\n
|
39
|
+
@stdout << (@verbose ? "\n#{thor_shell.set_color(msg, :white, true)}" : msg)
|
40
|
+
@stdout.flush
|
41
|
+
when "WARN"
|
42
|
+
@stdout << "\n" << thor_shell.set_color(msg, :yellow, true)
|
43
|
+
@stdout.flush
|
44
|
+
when "ERROR"
|
45
|
+
@stdout << "\n" << thor_shell.set_color(msg, :red, true)
|
39
46
|
@stdout.flush
|
40
47
|
else
|
41
48
|
@stderr << msg
|
@@ -63,6 +70,10 @@ module EY
|
|
63
70
|
"#{severity}: "
|
64
71
|
end
|
65
72
|
end
|
73
|
+
|
74
|
+
def thor_shell
|
75
|
+
thor_shell ||= Thor::Shell::Color.new
|
76
|
+
end
|
66
77
|
end
|
67
78
|
end
|
68
79
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: engineyard-serverside
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 897803393
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 6
|
9
9
|
- 0
|
10
10
|
- pre
|
11
|
-
-
|
12
|
-
version: 1.6.0.
|
11
|
+
- 4
|
12
|
+
version: 1.6.0.pre4
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- EY Cloud Team
|