embulk-input-remote 0.1.6 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 532a0faff1db000187f63a003aae3659e3517a00
4
- data.tar.gz: 7d12ba81386215ec39026f069a489efe0ae575ca
3
+ metadata.gz: 10dbe52e92593a8e9836bb00d63351ff80dea30c
4
+ data.tar.gz: bded1e4ef86b18c20ba77b179b842cd9b7d5d70c
5
5
  SHA512:
6
- metadata.gz: 0bb0a345bfd09380b381afb706753db9fa02b2d03dd751509b6c1a89ee4fc7741f90241deef263457cc9cd1a39b3cbaa80fa3f626fc58305f07ffe12dd9e1313
7
- data.tar.gz: b78c1bda3a1b2776d6044ea65194d2b32c3c8420a652139504415928acaab347cc3092f1c66835808f18df36c72f602833e7abcf58f5cad6a0cfb642b7977bbb
6
+ metadata.gz: b34d1a75751fb95afeba5c5fa9ac8b419c3ac244296c8e62b5b93811b29f8579ebd57eaebc639066dd66501205dcd1620299a273b8efefed0b93693fd7344104
7
+ data.tar.gz: 82d625edc95d9665ff27ad32a3cb9d22deeb354e98862a1eb7550e4d530188baf196ed6bfe7e878e6f5e8833c1b822770e2d6879e9fd36ed9ce341a8c66b9114
data/README.md CHANGED
@@ -15,7 +15,9 @@ This plugin load data from Remote hosts by SCP
15
15
  - **hosts_separator**: Separator for "hosts_command" result (string, default: " ")
16
16
  - **path**: Path of remote host (File or Directory) (string, default: "")
17
17
  - **path_command**: Command for getting path (Windows not supported). If given the option "path" is overwritten. (string, default: null)
18
- - **ignore_not_found_hosts**: If the option is true, Hosts which is not found file(or directory) or is occurred SSH error are skipped. (Means it's not included in resume target.) (boolean, default: false)
18
+ - **ignore_not_found_hosts**: If the option is true, Hosts which meet the following conditions are skipped. (Means they are not included into resume target.) (boolean, default: false)
19
+ - Target file (or directory) isn't found
20
+ - Occurred SSH error
19
21
  - **auth**: SSH authentication setting (hash, default: {})
20
22
  - **user**: SSH username (string, default: execute user)
21
23
  - **type**: public_key or password (string, default: public_key)
data/build.gradle CHANGED
@@ -13,7 +13,7 @@ configurations {
13
13
  provided
14
14
  }
15
15
 
16
- version = "0.1.6"
16
+ version = "0.1.8"
17
17
 
18
18
  dependencies {
19
19
  compile "org.embulk:embulk-core:0.7.10"
@@ -26,4 +26,12 @@ in:
26
26
  - {name: time, type: timestamp, format: '%Y-%m-%d %H:%M:%S'}
27
27
  - {name: purchase, type: timestamp, format: '%Y%m%d'}
28
28
  - {name: comment, type: string}
29
- out: {type: stdout}
29
+ #out: {type: stdout}
30
+ out:
31
+ type: file
32
+ path_prefix: {{ env.PROJECT_ROOT }}/example/csv/sample_
33
+ file_ext: csv
34
+ formatter:
35
+ type: csv
36
+ delimiter: "\t"
37
+ newline: CRLF
@@ -177,6 +177,11 @@ public class RemoteFileInputPlugin
177
177
 
178
178
  List<Target> targets = new ArrayList<>(task.getTargets());
179
179
  Collections.sort(targets);
180
+
181
+ if (targets.isEmpty()) {
182
+ return Exec.newConfigDiff();
183
+ }
184
+
180
185
  return Exec.newConfigDiff().set("last_target", targets.get(targets.size() - 1));
181
186
  }
182
187
 
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-remote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinichi Ishimura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-12 00:00:00.000000000 Z
11
+ date: 2016-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
14
  requirement: !ruby/object:Gem::Requirement
21
15
  requirements:
22
16
  - - ~>
23
17
  - !ruby/object:Gem::Version
24
18
  version: '1.0'
19
+ name: bundler
25
20
  prerelease: false
26
21
  type: :development
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
- - - '>='
24
+ - - ~>
32
25
  - !ruby/object:Gem::Version
33
- version: '10.0'
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
34
28
  requirement: !ruby/object:Gem::Requirement
35
29
  requirements:
36
30
  - - '>='
37
31
  - !ruby/object:Gem::Version
38
32
  version: '10.0'
33
+ name: rake
39
34
  prerelease: false
40
35
  type: :development
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
41
  description: Reads files stored on Remote hosts by SCP.
42
42
  email:
43
43
  - shiketaudonko41@gmail.com
@@ -62,7 +62,7 @@ files:
62
62
  - classpath/bcpkix-jdk15on-1.51.jar
63
63
  - classpath/bcprov-jdk15on-1.51.jar
64
64
  - classpath/ecc-25519-java-1.0.1.jar
65
- - classpath/embulk-input-remote-0.1.6.jar
65
+ - classpath/embulk-input-remote-0.1.8.jar
66
66
  - classpath/jzlib-1.1.3.jar
67
67
  - classpath/sshj-0.15.0.jar
68
68
  homepage: https://github.com/kamatama41/embulk-input-remote