aspera-cli 4.0.0.pre2 → 4.0.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +113 -35
- data/bin/ascli +2 -0
- data/docs/Makefile +2 -1
- data/docs/README.erb.md +36 -10
- data/docs/test_env.conf +5 -5
- data/lib/aspera/cli/main.rb +2 -11
- data/lib/aspera/cli/manager.rb +19 -6
- data/lib/aspera/cli/plugins/aoc.rb +1 -1
- data/lib/aspera/cli/plugins/config.rb +42 -18
- data/lib/aspera/cli/version.rb +1 -1
- data/lib/aspera/colors.rb +5 -1
- data/lib/aspera/environment.rb +14 -3
- data/lib/aspera/fasp/installation.rb +33 -19
- data/lib/aspera/fasp/local.rb +107 -154
- data/lib/aspera/log.rb +9 -1
- metadata +2 -2
data/lib/aspera/log.rb
CHANGED
@@ -49,7 +49,15 @@ module Aspera
|
|
49
49
|
|
50
50
|
# change underlying logger, but keep log level
|
51
51
|
def logger_type=(new_logtype)
|
52
|
-
current_severity_integer
|
52
|
+
current_severity_integer=if @logger.nil?
|
53
|
+
if ENV.has_key?('AS_LOG_LEVEL')
|
54
|
+
ENV['AS_LOG_LEVEL']
|
55
|
+
else
|
56
|
+
Logger::Severity::WARN
|
57
|
+
end
|
58
|
+
else
|
59
|
+
@logger.level
|
60
|
+
end
|
53
61
|
case new_logtype
|
54
62
|
when :stderr
|
55
63
|
@logger = Logger.new(STDERR)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspera-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laurent Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-simple
|