rbbt-util 5.31.12 → 5.31.13
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.
- checksums.yaml +4 -4
- data/lib/rbbt/util/cmd.rb +0 -1
- data/lib/rbbt/util/open.rb +3 -0
- data/lib/rbbt/workflow/remote_workflow/driver/rest.rb +1 -1
- data/share/rbbt_commands/log +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 42c6838da8c912f444ab59a74bb1cf96fdbe8d20aea2be712a035679cdec41e7
|
|
4
|
+
data.tar.gz: 77af7a4a5ec48d57637dc66967dca071bfb47563b520e80ba27eb9d6d7573407
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 39328d07cbc07c1be6beaa5149f94a94cac807fba36029415fef57644dc7bc63b90ee70f2e814271ae55033a1321bbb03dbb7d7531f7f033ec0df4401b1a716c
|
|
7
|
+
data.tar.gz: 9c0cbd95d049b5524072e31bf8f0b47884839bbf792ea8b0d6cd437a0f6aef5f6fa7efa5ef1288e77f1efe0bee50b360966e01c12284ea706d3cf876d0432512
|
data/lib/rbbt/util/cmd.rb
CHANGED
data/lib/rbbt/util/open.rb
CHANGED
|
@@ -346,15 +346,18 @@ module Open
|
|
|
346
346
|
target = File.join(target, File.basename(source)) if File.directory? target
|
|
347
347
|
FileUtils.mkdir_p File.dirname(target) unless File.exist?(File.dirname(target))
|
|
348
348
|
FileUtils.rm target if File.exist?(target)
|
|
349
|
+
FileUtils.rm target if File.symlink?(target)
|
|
349
350
|
FileUtils.ln_s source, target
|
|
350
351
|
end
|
|
351
352
|
|
|
352
353
|
def self.ln(source, target, options = {})
|
|
353
354
|
source = source.find if Path === source
|
|
354
355
|
target = target.find if Path === target
|
|
356
|
+
source = File.realpath(source) if File.symlink?(source)
|
|
355
357
|
|
|
356
358
|
FileUtils.mkdir_p File.dirname(target) unless File.exist?(File.dirname(target))
|
|
357
359
|
FileUtils.rm target if File.exist?(target)
|
|
360
|
+
FileUtils.rm target if File.symlink?(target)
|
|
358
361
|
FileUtils.ln source, target
|
|
359
362
|
end
|
|
360
363
|
|
data/share/rbbt_commands/log
CHANGED
|
@@ -31,7 +31,9 @@ if ARGV.empty?
|
|
|
31
31
|
puts Rbbt.etc.log_severity.find + ' does not exist'
|
|
32
32
|
end
|
|
33
33
|
else
|
|
34
|
-
|
|
34
|
+
level = ARGV[0]
|
|
35
|
+
level = %w(DEBUG LOW MEDIUM HIGH INFO WARN ERROR NONE)[level.to_i] if level =~ /^\d+$/
|
|
36
|
+
Open.write(Rbbt.etc.log_severity, level.upcase)
|
|
35
37
|
end
|
|
36
38
|
|
|
37
39
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rbbt-util
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.31.
|
|
4
|
+
version: 5.31.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miguel Vazquez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-04-
|
|
11
|
+
date: 2021-04-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|