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
- if severity == "DEBUG"
32
+ case severity
33
+ when "DEBUG"
33
34
  if @verbose
34
35
  @stdout << msg
35
36
  end
36
- elsif severity == "INFO"
37
+ when "INFO"
37
38
  # Need to differentiate info messages more when we're running in verbose mode
38
- @stdout << (@verbose ? "\n\e[1m#{msg}\e[0m" : msg)
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
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module Serverside
3
- VERSION = '1.6.0.pre3'
3
+ VERSION = '1.6.0.pre4'
4
4
  end
5
5
  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: -4131842312
4
+ hash: 897803393
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 6
9
9
  - 0
10
10
  - pre
11
- - 3
12
- version: 1.6.0.pre3
11
+ - 4
12
+ version: 1.6.0.pre4
13
13
  platform: ruby
14
14
  authors:
15
15
  - EY Cloud Team