embulk-output-sftp 0.1.3 → 0.1.4
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 +6 -0
- data/build.gradle +4 -4
- data/classpath/commons-io-2.6.jar +0 -0
- data/classpath/commons-vfs2-2.2.jar +0 -0
- data/classpath/{embulk-output-sftp-0.1.3.jar → embulk-output-sftp-0.1.4.jar} +0 -0
- data/classpath/{jsch-0.1.53.jar → jsch-0.1.54.jar} +0 -0
- data/src/main/java/org/embulk/output/sftp/SftpFileOutput.java +6 -1
- data/src/main/java/org/embulk/output/sftp/SftpFileOutputPlugin.java +15 -12
- metadata +6 -6
- data/classpath/commons-io-2.5.jar +0 -0
- data/classpath/commons-vfs2-2.1.1660580.2.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2b11bf7261d43608476053f62b5425f45643c1a
|
4
|
+
data.tar.gz: dc84dd6e807ae8d0b6736eaa485ced869e8c83c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0025aef591b2cdb982df7d09a5b2225f1855b2e7ab97966d34cd61b74eaa1e1dcab848af0881a5f4a2159d5d6d9d39f99fd064a0ed9cf3cc686a4e9359b398e0
|
7
|
+
data.tar.gz: 5bb8ab885d48fb2e3a4af7a5db9e850d7c185e0d2d4de8897abaf5c2580fba1ec4e16c3a5c60be91239cb4db280420f1dcdb8f863bc0132e0ac0ba0a8f62ce20
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
0.1.4 (2017-12-21)
|
2
|
+
- Fix: Disable remote temporary file rename logic
|
3
|
+
- https://github.com/embulk/embulk-output-sftp/pull/41
|
4
|
+
- Enhance: Upgrade "commons-vfs2", "com.jcraft:jsch" and "commons-io:commons-io"
|
5
|
+
- https://github.com/embulk/embulk-output-sftp/pull/42
|
6
|
+
|
1
7
|
0.1.3 (2017-11-07)
|
2
8
|
- Enhance: Create temporary file and rename it after upload completed
|
3
9
|
- https://github.com/embulk/embulk-output-sftp/pull/37
|
data/build.gradle
CHANGED
@@ -17,7 +17,7 @@ configurations {
|
|
17
17
|
}
|
18
18
|
|
19
19
|
group = "org.embulk.output.sftp"
|
20
|
-
version = "0.1.
|
20
|
+
version = "0.1.4"
|
21
21
|
sourceCompatibility = 1.7
|
22
22
|
targetCompatibility = 1.7
|
23
23
|
|
@@ -25,9 +25,9 @@ dependencies {
|
|
25
25
|
compile "org.embulk:embulk-core:0.8.6"
|
26
26
|
provided "org.embulk:embulk-core:0.8.6"
|
27
27
|
// compile "YOUR_JAR_DEPENDENCY_GROUP:YOUR_JAR_DEPENDENCY_MODULE:YOUR_JAR_DEPENDENCY_VERSION"
|
28
|
-
compile "org.apache.commons:commons-vfs2:2.
|
29
|
-
compile "commons-io:commons-io:2.
|
30
|
-
compile "com.jcraft:jsch:0.1.
|
28
|
+
compile "org.apache.commons:commons-vfs2:2.2"
|
29
|
+
compile "commons-io:commons-io:2.6"
|
30
|
+
compile "com.jcraft:jsch:0.1.54"
|
31
31
|
testCompile "junit:junit:4.+"
|
32
32
|
testCompile "org.embulk:embulk-core:0.8.6:tests"
|
33
33
|
testCompile "org.embulk:embulk-standards:0.8.6"
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -84,7 +84,12 @@ public class SftpFileOutput
|
|
84
84
|
closeCurrentFile();
|
85
85
|
String fileName = getOutputFilePath();
|
86
86
|
String temporaryFileName = fileName + temporaryFileSuffix;
|
87
|
-
|
87
|
+
/*
|
88
|
+
#37 causes permission failure while renaming remote file.
|
89
|
+
https://github.com/embulk/embulk-output-sftp/issues/40
|
90
|
+
*/
|
91
|
+
//sftpUtils.uploadFile(tempFile, temporaryFileName);
|
92
|
+
sftpUtils.uploadFile(tempFile, fileName);
|
88
93
|
|
89
94
|
Map<String, String> executedFiles = new HashMap<>();
|
90
95
|
executedFiles.put("temporary_filename", temporaryFileName);
|
@@ -14,7 +14,6 @@ import org.embulk.spi.TransactionalFileOutput;
|
|
14
14
|
import org.embulk.spi.unit.LocalFile;
|
15
15
|
|
16
16
|
import java.util.List;
|
17
|
-
import java.util.Map;
|
18
17
|
|
19
18
|
public class SftpFileOutputPlugin
|
20
19
|
implements FileOutputPlugin
|
@@ -99,17 +98,21 @@ public class SftpFileOutputPlugin
|
|
99
98
|
int taskCount,
|
100
99
|
List<TaskReport> successTaskReports)
|
101
100
|
{
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
101
|
+
/*
|
102
|
+
#37 causes permission failure while renaming remote file.
|
103
|
+
https://github.com/embulk/embulk-output-sftp/issues/40
|
104
|
+
*/
|
105
|
+
// SftpUtils sftpUtils = new SftpUtils(taskSource.loadTask(PluginTask.class));
|
106
|
+
// for (TaskReport report : successTaskReports) {
|
107
|
+
// List<Map<String, String>> moveFileList = report.get(List.class, "file_list");
|
108
|
+
// for (Map<String, String> pairFiles : moveFileList) {
|
109
|
+
// String temporaryFileName = pairFiles.get("temporary_filename");
|
110
|
+
// String realFileName = pairFiles.get("real_filename");
|
111
|
+
//
|
112
|
+
// sftpUtils.renameFile(temporaryFileName, realFileName);
|
113
|
+
// }
|
114
|
+
// }
|
115
|
+
// sftpUtils.close();
|
113
116
|
}
|
114
117
|
|
115
118
|
@Override
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-output-sftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Civitaspo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-12-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,11 +70,11 @@ files:
|
|
70
70
|
- src/test/java/org/embulk/output/sftp/TestSftpFileOutputPlugin.java
|
71
71
|
- src/test/resources/id_rsa
|
72
72
|
- src/test/resources/id_rsa.pub
|
73
|
-
- classpath/commons-io-2.
|
73
|
+
- classpath/commons-io-2.6.jar
|
74
74
|
- classpath/commons-logging-1.2.jar
|
75
|
-
- classpath/commons-vfs2-2.
|
76
|
-
- classpath/embulk-output-sftp-0.1.
|
77
|
-
- classpath/jsch-0.1.
|
75
|
+
- classpath/commons-vfs2-2.2.jar
|
76
|
+
- classpath/embulk-output-sftp-0.1.4.jar
|
77
|
+
- classpath/jsch-0.1.54.jar
|
78
78
|
homepage: https://github.com/embulk/embulk-output-sftp
|
79
79
|
licenses:
|
80
80
|
- MIT
|
Binary file
|
Binary file
|