gloo-lang 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -1
- data/lib/VERSION +1 -1
- data/lib/gloo_lang/app/engine.rb +3 -4
- data/lib/gloo_lang/app/log.rb +2 -2
- 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: dd3e269694e1c7aef191b9fcd1bae34b29932fc2215f90f372cfd5d5d2748bc0
|
4
|
+
data.tar.gz: 7976911ab79e1679c1940e43217f4c8fc533bab59fbf2a71b857ee4a7aeefed2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9be9692d331f3767e78efc2e9a5fcb5d826e11429240cf77ae9d134a41408b2fbed7a144b54a6ba8291619ddc4bb108cecf3743deb53f96e425018937d8fc28
|
7
|
+
data.tar.gz: b29cc45d25aa4472d8112caaf08c20deccf245c9f3a0e3392e102a558e4c13daba147b9077d057d9fb67b847bc04e0ffdd5642292376857bacf1cf33896473ae
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gloo-lang (0.9.
|
4
|
+
gloo-lang (0.9.7)
|
5
5
|
chronic (~> 0.10, >= 0.10.2)
|
6
6
|
json (~> 2.1, >= 2.1.0)
|
7
7
|
net-ssh (~> 6.1, >= 6.1.0)
|
8
8
|
openssl (~> 2.1, >= 2.1.0)
|
9
|
+
tty-platform (~> 0.3, >= 0.3.0)
|
9
10
|
|
10
11
|
GEM
|
11
12
|
remote: https://rubygems.org/
|
@@ -37,6 +38,7 @@ GEM
|
|
37
38
|
rubocop-ast (1.16.0)
|
38
39
|
parser (>= 3.1.1.0)
|
39
40
|
ruby-progressbar (1.11.0)
|
41
|
+
tty-platform (0.3.0)
|
40
42
|
unicode-display_width (2.1.0)
|
41
43
|
|
42
44
|
PLATFORMS
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.8
|
data/lib/gloo_lang/app/engine.rb
CHANGED
@@ -19,15 +19,14 @@ module GlooLang
|
|
19
19
|
#
|
20
20
|
# Set up the engine with basic elements.
|
21
21
|
#
|
22
|
-
def initialize( params = [], platform=
|
22
|
+
def initialize( params = [], platform=Platform, log=Log )
|
23
23
|
$engine = self
|
24
24
|
@args = Args.new( params )
|
25
25
|
$settings = Settings.new( ENV[ 'GLOO_ENV' ] )
|
26
26
|
|
27
|
-
$log = log ?
|
28
|
-
|
27
|
+
$log = log.new( @args.quiet? )
|
28
|
+
@platform = platform.new
|
29
29
|
|
30
|
-
@platform = platform ? platform : Platform.new
|
31
30
|
$log.debug 'engine intialized...'
|
32
31
|
end
|
33
32
|
|
data/lib/gloo_lang/app/log.rb
CHANGED
@@ -9,8 +9,7 @@ module GlooLang
|
|
9
9
|
module App
|
10
10
|
class Log
|
11
11
|
|
12
|
-
attr_reader :logger
|
13
|
-
attr_accessor :quiet
|
12
|
+
attr_reader :logger, :quiet
|
14
13
|
|
15
14
|
#
|
16
15
|
# Set up a logger.
|
@@ -21,6 +20,7 @@ module GlooLang
|
|
21
20
|
f = File.join( $settings.log_path, 'gloo.log' )
|
22
21
|
@logger = Logger.new( f )
|
23
22
|
@logger.level = Logger::DEBUG
|
23
|
+
@quite = quiet
|
24
24
|
end
|
25
25
|
|
26
26
|
#
|