jank 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/executor.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb75459339e5efd7a91c949cbda32cda0381e998
|
4
|
+
data.tar.gz: a10725b0f11c4d8e722c0030532b54243d134ca1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de30db31c57a3315241d21ad901d407db5e971f38a2f2f8c213aefd604e541637147080a1d826e3e399589bfeda7856e732dc75605d8680c5cf1db285f4e6096
|
7
|
+
data.tar.gz: efa3f4ea7e501aaaf366b7c267b4b2c4cccce4de9a617beb0541bed423a46fe8d25c94c2dc916f6083b94f738e8f5c19c9681dce4774f2293186756d7e9ab195
|
data/lib/executor.rb
CHANGED
@@ -8,7 +8,10 @@ module Jank
|
|
8
8
|
|
9
9
|
def execute(cmd, args)
|
10
10
|
if @config.janked
|
11
|
-
|
11
|
+
subdir = @config.pwd.sub(@config.janked_local_path, '')
|
12
|
+
gp_workind_dir = "#{@config.janked_gopath}#{subdir}"
|
13
|
+
|
14
|
+
Dir.chdir(gp_workind_dir) do
|
12
15
|
janked_args = Array.new
|
13
16
|
args.each do |a|
|
14
17
|
if a.start_with? @config.janked_local_path
|
@@ -18,7 +21,7 @@ module Jank
|
|
18
21
|
end
|
19
22
|
end
|
20
23
|
|
21
|
-
Jank.debug_log("🚀 #{
|
24
|
+
Jank.debug_log("🚀 #{gp_workind_dir}> #{cmd} #{janked_args.inspect}")
|
22
25
|
run(cmd, janked_args)
|
23
26
|
end
|
24
27
|
else
|