kanrisuru 0.16.8 → 0.16.9
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/CHANGELOG.md +3 -0
- data/lib/kanrisuru/core/transfer/commands/upload.rb +5 -5
- data/lib/kanrisuru/version.rb +1 -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: ffeb83d91c285f197ed82ea9faf1f2d4ed95f8394cd383354eebed18dc6ace91
|
4
|
+
data.tar.gz: 5b4d615c7754eb2d520f175d77cecafb774e2d841d9077c23b8ccb39d7fde059
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eac9603360b49938e188cf36babef60f57106091f93d5ad1f7e74a45e523b5f235463653ea305b34d700c728382707496662212c83e59ad629f954c695644f33
|
7
|
+
data.tar.gz: 2b6214a7c61f3273f226290ad87fbf3da0eb5f401a9b6923a45779beca89b1ba7e5cbece32247136fba5b24eb8c4ea38015fc136e752d3508d62845ba24e70ba
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## Kanrisuru 0.16.9 (December 27, 2021) ##
|
2
|
+
* Use cp intead of mv for recurisive dir overwrite on upload command.
|
3
|
+
|
1
4
|
## Kanrisuru 0.16.8 (December 27, 2021) ##
|
2
5
|
* Fix return value of field for dmi parser.
|
3
6
|
* Fix upload command to copy contents of directory when transfering directories from tmp location.
|
@@ -12,16 +12,16 @@ module Kanrisuru
|
|
12
12
|
|
13
13
|
## Need to copy internal dir contents, not the tmp dir itself
|
14
14
|
if opts[:recursive]
|
15
|
-
tmp_path = "#{tmp_path}/*"
|
16
|
-
|
17
15
|
unless dir?(remote_path)
|
18
16
|
mkdir(remote_path, silent: true)
|
19
17
|
end
|
20
|
-
end
|
21
18
|
|
22
|
-
|
23
|
-
|
19
|
+
result = cp("#{tmp_path}/*", remote_path, recursive: true)
|
20
|
+
else
|
21
|
+
result = mv(tmp_path, remote_path)
|
22
|
+
end
|
24
23
|
|
24
|
+
raise "Unable to move file to remote path - #{result.command.raw_result}" unless result.success?
|
25
25
|
stat(remote_path)
|
26
26
|
ensure
|
27
27
|
rm(tmp_path, force: true) if inode?(tmp_path)
|
data/lib/kanrisuru/version.rb
CHANGED