smartcloud 0.0.158 → 0.0.159
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smartcloud/grids/grid-runner/buildpacks/buildpacker.rb +14 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce5d7b91f0eb81108aaacbf375fffb6529dbd0700872448ffb004ed7162ad956
|
4
|
+
data.tar.gz: 734757bc7a2c00e31700b6ff39e149091c2d260c4e24e9a88cf6b35f40e37a5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a63b89d7d92a3c2dc3d4b02726ecdfcfad428e41ed950fa30290a2d93b2ddb8cc15db56237bbb4c53d3d72a29fb31fd05206575ee2fd48782ca5371655cafbd5
|
7
|
+
data.tar.gz: bd70cafda75cc529cd86a6daa58b1b3223672ac63973c79ccb37b92f2f3d524e2a97fbc2c0a75bea5c7ef1670a0f58485112c3089578e5435750abd66f722184
|
@@ -25,20 +25,22 @@ class Buildpacker
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
28
|
-
|
29
|
-
def self.logger
|
30
|
-
@logger ||= self.configure_logger_for(self.name)
|
31
|
-
end
|
32
28
|
|
33
|
-
|
34
|
-
logger
|
35
|
-
|
36
|
-
logger.formatter = proc do |severity, datetime, progname, message|
|
37
|
-
"\t\t\t-----> #{severity}: #{message}\n"
|
29
|
+
class << base
|
30
|
+
def logger
|
31
|
+
@logger ||= self.configure_logger_for(self.name)
|
38
32
|
end
|
39
|
-
|
40
|
-
|
41
|
-
|
33
|
+
|
34
|
+
def configure_logger_for(classname)
|
35
|
+
logger = ::Logger.new($stdout)
|
36
|
+
logger.level = ::Logger::DEBUG
|
37
|
+
logger.formatter = proc do |severity, datetime, progname, message|
|
38
|
+
"\t\t\t-----> #{severity}: #{message}\n"
|
39
|
+
end
|
40
|
+
logger.progname = classname
|
41
|
+
logger
|
42
|
+
end
|
43
|
+
end
|
42
44
|
end
|
43
45
|
|
44
46
|
buildpacker = Buildpacker.new
|