rbbt-util 5.37.9 → 5.37.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/resource/util.rb +1 -1
- data/share/install/software/lib/install_helpers +2 -1
- 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: 797cec21ce0cb27977436e799e5e58b291a0003bc31a73637948ba93e9523dc6
|
4
|
+
data.tar.gz: 0aad818af111e8b3cb45a35a4aa7ceae7d10951c37ff727a5e9ed6a2ba8014f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37a3c6a8bff10b43dca94edd29909dab0c5ea2fa7fdf84dfaf31c4e95165553e933d0d77ddf8488da42376e45d41d0a176b83263d36dde3881cf2fd450c5b6f7
|
7
|
+
data.tar.gz: '09ffbdd83ce3ce1f2d4eb7a12a7f22d988bfe2f95bbea7d3c25ecd3364fce359344654ce27cbc5f1c125d7b796015c0aec9a2275d3808a7eafd838152fcde2ed'
|
data/lib/rbbt/resource/util.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Path
|
2
2
|
|
3
|
-
def self.caller_lib_dir(file = nil, relative_to = ['lib', 'bin'
|
3
|
+
def self.caller_lib_dir(file = nil, relative_to = ['lib', 'bin'])
|
4
4
|
#file = caller.reject{|l|
|
5
5
|
# l =~ /rbbt\/(?:resource\.rb|workflow\.rb)/ or
|
6
6
|
# l =~ /rbbt\/resource\/path\.rb/ or
|
@@ -28,13 +28,14 @@ else
|
|
28
28
|
done
|
29
29
|
REALPATH="$PWD/$(basename "$1")"
|
30
30
|
cd "$OURPWD"
|
31
|
+
echo "$REALPATH" >&2
|
31
32
|
echo "$REALPATH"
|
32
33
|
}
|
33
34
|
|
34
35
|
function relative_path(){
|
35
36
|
local basedir="$(realpath $1)"
|
36
37
|
local path="$(realpath "$2")"
|
37
|
-
|
38
|
+
echo ${path/$(dirname $basedir)\/..}
|
38
39
|
}
|
39
40
|
fi
|
40
41
|
|