embulk-input-remote 0.1.0 → 0.1.1

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: 305d88a19ed8811959b2b5fe1f28ccd0f0c0470f
4
- data.tar.gz: 267dcf87dbc85df3abc4d79d04d710a7a894a2a5
3
+ metadata.gz: b37822e56bd1e3b9726a1cdab656c33e42b4d3cf
4
+ data.tar.gz: 3e567cc0300e1319bccd86fea0410ec7193fc269
5
5
  SHA512:
6
- metadata.gz: f45656d575e8801e2b8f10901bdfeb2bfdcd91e1edc58242e4505954b58d96ca1d58b0b3f81b1c803982c9b9519f7539cc41e8dc49d578d8bf494f2003fb608d
7
- data.tar.gz: 6126dd4f0f71de003097de04f643d24672ea6ed95490705ff01a81a5c74dc187d63b20703de1542f7fa6cc1d20aa096f0a7a430c34541bdbed0a78963cb6bbfa
6
+ metadata.gz: 4d2157a0e77f281c030535eaf37ab47f28f4f73b5d85d1749ed7fd56fd2fb2676c6661b53271c67e0912885e88028dbd047f5ae4757036962b222c077a9e80b1
7
+ data.tar.gz: 87ded4537e43dd1477462998083732f4e2dfe0b274a007380a9c4bec1df7c4020a9a792b8681921e3f552a9d6f311fef772560bb7d0bb44872519d55005116e3
data/README.md CHANGED
@@ -11,12 +11,12 @@ This plugin load data from Remote hosts by SCP
11
11
  ## Configuration
12
12
 
13
13
  - **hosts**: Target hosts (list, default: [])
14
- - **hosts_command**: Command to getting hosts(Windows not supported). If given the option, "hosts" is overwritten. (string, default: null)
15
- - **hosts_separator**: Separator of "hosts_command" result (string, default: " ")
14
+ - **hosts_command**: Command for getting hosts(Windows not supported). If given the option, "hosts" is overwritten. (string, default: null)
15
+ - **hosts_separator**: Separator for "hosts_command" result (string, default: " ")
16
16
  - **path**: Path of remote host (File or Directory) (string, default: "")
17
- - **path_command**: Command to getting hosts (Windows not supported). If given the option "path" is overwritten. (string, default: null)
18
- - **auth**: SSH authentication setting (map, default: {})
19
- - **user**: SSH username (string, default: executing username)
17
+ - **path_command**: Command for getting path (Windows not supported). If given the option "path" is overwritten. (string, default: null)
18
+ - **auth**: SSH authentication setting (hash, default: {})
19
+ - **user**: SSH username (string, default: execute user)
20
20
  - **type**: public_key or password (string, default: public_key)
21
21
  - **key_path**: Path of secret key (If you choose type "public_key") (string, default: "~/.ssh/id_rsa or id_dsa")
22
22
  - **password**: SSH password (If you choose type "password") (string)
@@ -31,7 +31,7 @@ in:
31
31
  - host2
32
32
  # hosts_command: echo 'host1,host2'
33
33
  # hosts_separator: ','
34
- path: echo /some/path/20150414125923
34
+ path: /some/path/20150414125923
35
35
  # path_command: echo /some/path/`date "+%Y%m%d%H%M%S"`
36
36
  auth:
37
37
  user: {username}
data/build.gradle CHANGED
@@ -13,7 +13,7 @@ configurations {
13
13
  provided
14
14
  }
15
15
 
16
- version = "0.1.0"
16
+ version = "0.1.1"
17
17
 
18
18
  dependencies {
19
19
  compile "org.embulk:embulk-core:0.6.1"
@@ -41,7 +41,7 @@ Gem::Specification.new do |spec|
41
41
  spec.version = "${project.version}"
42
42
  spec.authors = ["Shinichi ISHIMURA"]
43
43
  spec.summary = %[Remote file input plugin for Embulk]
44
- spec.description = %[Reads files stored on Remote hosts.]
44
+ spec.description = %[Reads files stored on Remote hosts by SCP.]
45
45
  spec.email = ["shiketaudonko41@gmail.com"]
46
46
  spec.licenses = ["MIT"]
47
47
  spec.homepage = "https://github.com/kamatama41/embulk-input-remote"
@@ -241,7 +241,7 @@ public class RemoteFileInputPlugin
241
241
  final String user = auth.get("user") != null ? auth.get("user") : System.getProperty("user.name");
242
242
 
243
243
  if ("password".equals(type)) {
244
- client.authPassword(auth.get("user"), auth.get("password"));
244
+ client.authPassword(user, auth.get("password"));
245
245
  } else if ("public_key".equals(type)) {
246
246
  final String key_path = auth.get("key_path");
247
247
  if (key_path == null) {
@@ -1,5 +1,34 @@
1
1
  package org.embulk.input;
2
2
 
3
+ //import com.google.common.base.Optional;
4
+ //import org.embulk.EmbulkTestRuntime;
5
+ //import org.embulk.config.ConfigSource;
6
+ //import org.embulk.spi.Exec;
7
+ //import org.junit.Rule;
8
+ //import org.junit.Test;
9
+ //
10
+ //import java.util.Collections;
11
+ //
12
+ //import static org.hamcrest.CoreMatchers.is;
13
+ //import static org.junit.Assert.assertThat;
14
+
3
15
  public class TestRemoteFileInputPlugin
4
16
  {
17
+ // @Rule
18
+ // public EmbulkTestRuntime runtime = new EmbulkTestRuntime();
19
+ //
20
+ // @Test
21
+ // public void checkDefaultValues()
22
+ // {
23
+ // ConfigSource config = Exec.newConfigSource();
24
+ //
25
+ // RemoteFileInputPlugin.PluginTask task = config.loadConfig(RemoteFileInputPlugin.PluginTask.class);
26
+ // assertThat(task.getHosts(), is(Collections.<String>emptyList()));
27
+ // assertThat(task.getHostsCommand(), is(Optional.<String>absent()));
28
+ // assertThat(task.getHostsSeparator(), is(" "));
29
+ // assertThat(task.getPath(), is(""));
30
+ // assertThat(task.getPathCommand(), is(Optional.<String>absent()));
31
+ // assertThat(task.getAuth(), is(Collections.<String, String>emptyMap()));
32
+ // assertThat(task.getLastTarget(), is(Optional.<RemoteFileInputPlugin.Target>absent()));
33
+ // }
5
34
  }
metadata CHANGED
@@ -1,44 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-remote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
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-04-14 00:00:00.000000000 Z
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- requirement: !ruby/object:Gem::Requirement
14
+ name: bundler
15
+ version_requirements: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - ~>
17
18
  - !ruby/object:Gem::Version
18
19
  version: '1.0'
19
- name: bundler
20
- prerelease: false
21
- type: :development
22
- version_requirements: !ruby/object:Gem::Requirement
20
+ requirement: !ruby/object:Gem::Requirement
23
21
  requirements:
24
22
  - - ~>
25
23
  - !ruby/object:Gem::Version
26
24
  version: '1.0'
25
+ prerelease: false
26
+ type: :development
27
27
  - !ruby/object:Gem::Dependency
28
- requirement: !ruby/object:Gem::Requirement
28
+ name: rake
29
+ version_requirements: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: '10.0'
33
- name: rake
34
- prerelease: false
35
- type: :development
36
- version_requirements: !ruby/object:Gem::Requirement
34
+ requirement: !ruby/object:Gem::Requirement
37
35
  requirements:
38
36
  - - '>='
39
37
  - !ruby/object:Gem::Version
40
38
  version: '10.0'
41
- description: Reads files stored on Remote hosts.
39
+ prerelease: false
40
+ type: :development
41
+ description: Reads files stored on Remote hosts by SCP.
42
42
  email:
43
43
  - shiketaudonko41@gmail.com
44
44
  executables: []
@@ -58,7 +58,7 @@ files:
58
58
  - src/test/java/org/embulk/input/TestRemoteFileInputPlugin.java
59
59
  - classpath/bcpkix-jdk15on-1.51.jar
60
60
  - classpath/bcprov-jdk15on-1.51.jar
61
- - classpath/embulk-input-remote-0.1.0.jar
61
+ - classpath/embulk-input-remote-0.1.1.jar
62
62
  - classpath/jzlib-1.1.3.jar
63
63
  - classpath/sshj-0.11.0.jar
64
64
  homepage: https://github.com/kamatama41/embulk-input-remote