jetel 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +34 -0
- data/README.md +14 -7
- data/Rakefile +11 -0
- data/bin/jetel +20 -0
- data/lib/jetel.rb +20 -0
- data/lib/jetel/cli/app.rb +20 -0
- data/lib/jetel/cli/cli.rb +20 -0
- data/lib/jetel/cli/cmd/config_cmd.rb +20 -0
- data/lib/jetel/cli/cmd/downloaders_cmd.rb +20 -0
- data/lib/jetel/cli/cmd/loaders_cmd.rb +20 -0
- data/lib/jetel/cli/cmd/modules_cmd.rb +31 -0
- data/lib/jetel/cli/cmd/version_cmd.rb +20 -0
- data/lib/jetel/cli/shared.rb +20 -0
- data/lib/jetel/config/config.rb +20 -0
- data/lib/jetel/downloaders/base_downloader.rb +20 -0
- data/lib/jetel/downloaders/downloader.rb +20 -0
- data/lib/jetel/downloaders/downloaders.rb +22 -0
- data/lib/jetel/helpers/general_helper.rb +20 -0
- data/lib/jetel/helpers/helpers.rb +19 -3
- data/lib/jetel/helpers/os_helper.rb +22 -0
- data/lib/jetel/lib.rb +20 -0
- data/lib/jetel/loaders/couchbase/couchbase.rb +42 -4
- data/lib/jetel/loaders/elasticsearch/elasticsearch.rb +22 -0
- data/lib/jetel/loaders/loader.rb +22 -0
- data/lib/jetel/loaders/loaders.rb +22 -0
- data/lib/jetel/loaders/pg/pg.rb +22 -0
- data/lib/jetel/loaders/pg/sql/copy.sql.erb +20 -0
- data/lib/jetel/loaders/pg/sql/create_table.sql.erb +20 -0
- data/lib/jetel/loaders/pg/sql/drop_table.sql.erb +20 -0
- data/lib/jetel/loaders/pg/sql/header.sql.erb +20 -0
- data/lib/jetel/loaders/pg/sql/schema.sql.erb +20 -0
- data/lib/jetel/loaders/pg/sql/truncate_table.sql.erb +20 -0
- data/lib/jetel/modules/alexa/alexa.rb +19 -0
- data/lib/jetel/modules/gadm/gadm.rb +5 -1
- data/lib/jetel/modules/geolite/geolite.rb +19 -0
- data/lib/jetel/modules/ip/ip.rb +20 -0
- data/lib/jetel/modules/iso3166/iso3166.rb +20 -0
- data/lib/jetel/modules/module.rb +46 -4
- data/lib/jetel/modules/modules.rb +22 -0
- data/lib/jetel/modules/nga/nga.rb +20 -0
- data/lib/jetel/modules/sfpd/sfpd.rb +20 -0
- data/lib/jetel/modules/tiger/tiger.rb +113 -0
- data/lib/jetel/modules/wifileaks/wifileaks.rb +21 -1
- data/lib/jetel/version.rb +21 -1
- data/spec/helpers/general_helper_spec.rb +16 -0
- data/spec/modules/alexa_spec.rb +0 -0
- data/{test → spec}/spec_helper.rb +0 -0
- metadata +10 -5
- data/Gemfile.lock +0 -156
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 131c4c8fa85496e86fc0e816ed63df75fe62fe3d
|
4
|
+
data.tar.gz: 9c37132b9057ba03c060e8e2894ec001641d1a75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2317296c5d291510f302478f6ee67f2daaea54e1b8880ea23da1fb4d755140dd4998885f4b6045b7d7889fe12d4aaa621a4e8df574df2da0bab1795f89e69677
|
7
|
+
data.tar.gz: 30e15cad5553dabb8fd1147508c84ed31b0741b16c10a94bd6df368bc39085a2a4f9fb731634366ef71fc6af1f1306da5ce4b8c56ded99100141a1f41667590d
|
data/.travis.yml
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
language: ruby
|
2
|
+
|
3
|
+
# sudo: true
|
4
|
+
|
5
|
+
compiler:
|
6
|
+
- clang
|
7
|
+
- gcc
|
8
|
+
|
9
|
+
before_install:
|
10
|
+
- sudo apt-get -y install python-software-properties
|
11
|
+
- sudo add-apt-repository -y ppa:mnunberg/cmake
|
12
|
+
- sudo apt-get update
|
13
|
+
- sudo apt-get -y install libgtest-dev libssl-dev libev-dev libevent-dev cmake
|
14
|
+
|
15
|
+
#addons:
|
16
|
+
# apt:
|
17
|
+
# packages:
|
18
|
+
# - python-software-properties
|
19
|
+
# - cmake
|
20
|
+
# - libcouchbase
|
21
|
+
# - libcouchbase-dev
|
22
|
+
# - libgtest-dev
|
23
|
+
# - libssl-dev
|
24
|
+
# - libev-dev
|
25
|
+
# - libevent-dev
|
26
|
+
# - libcouchbase
|
27
|
+
# - libcouchbase-dev
|
28
|
+
|
29
|
+
rvm:
|
30
|
+
- 2.2
|
31
|
+
- 2.1
|
32
|
+
- 2.0.0
|
33
|
+
- 1.9.3
|
34
|
+
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
## Status
|
4
4
|
|
5
|
+
[![Build Status](https://travis-ci.org/korczis/jetel.svg)](https://travis-ci.org/korczis/jetel)
|
5
6
|
[![Gem Version](https://badge.fury.io/rb/jetel.svg)](http://badge.fury.io/rb/jetel)
|
6
7
|
[![Downloads](http://img.shields.io/gem/dt/jetel.svg)](http://rubygems.org/gems/jetel)
|
7
8
|
[![Dependency Status](https://gemnasium.com/korczis/jetel.svg)](https://gemnasium.com/korczis/jetel)
|
@@ -11,7 +12,8 @@
|
|
11
12
|
Run `jetel`
|
12
13
|
|
13
14
|
```
|
14
|
-
jetel
|
15
|
+
$ jetel
|
16
|
+
|
15
17
|
NAME
|
16
18
|
jetel - Simple custom made tool for data download and basic ETL
|
17
19
|
|
@@ -19,7 +21,7 @@ SYNOPSIS
|
|
19
21
|
jetel [global options] command [command options] [arguments...]
|
20
22
|
|
21
23
|
VERSION
|
22
|
-
0.0.
|
24
|
+
0.0.15
|
23
25
|
|
24
26
|
GLOBAL OPTIONS
|
25
27
|
-d, --download_dir=download-dir - Download directory (default: data)
|
@@ -31,6 +33,8 @@ GLOBAL OPTIONS
|
|
31
33
|
COMMANDS
|
32
34
|
alexa, Alexa - Module alexa
|
33
35
|
config - Show config
|
36
|
+
downloaders - Print downloaders info
|
37
|
+
gadm, Gadm - Module gadm
|
34
38
|
geolite, Geolite - Module geolite
|
35
39
|
help - Shows a list of commands or help for one command
|
36
40
|
ip, Ip - Module ip
|
@@ -39,6 +43,7 @@ COMMANDS
|
|
39
43
|
modules - Print modules info
|
40
44
|
nga, Nga - Module nga
|
41
45
|
sfpd, Sfpd - Module sfpd
|
46
|
+
tiger, Tiger - Module tiger
|
42
47
|
version - Print version info
|
43
48
|
wifileaks, Wifileaks - Module wifileaks
|
44
49
|
```
|
@@ -78,16 +83,18 @@ SYNOPSIS
|
|
78
83
|
### Show modules/sources
|
79
84
|
|
80
85
|
```
|
81
|
-
jetel modules
|
86
|
+
$ jetel modules
|
82
87
|
+-----------+---------------------------+
|
83
88
|
| Name | Class |
|
84
89
|
+-----------+---------------------------+
|
85
90
|
| alexa | Jetel::Modules::Alexa |
|
91
|
+
| gadm | Jetel::Modules::Gadm |
|
86
92
|
| geolite | Jetel::Modules::Geolite |
|
87
93
|
| ip | Jetel::Modules::Ip |
|
88
94
|
| iso3166 | Jetel::Modules::Iso3166 |
|
89
95
|
| nga | Jetel::Modules::Nga |
|
90
96
|
| sfpd | Jetel::Modules::Sfpd |
|
97
|
+
| tiger | Jetel::Modules::Tiger |
|
91
98
|
| wifileaks | Jetel::Modules::Wifileaks |
|
92
99
|
+-----------+---------------------------+
|
93
100
|
```
|
@@ -233,8 +240,8 @@ COPY "geolite"
|
|
233
240
|
|
234
241
|
```
|
235
242
|
$ rake -T
|
236
|
-
rake gem:build # Build jetel-0.0.
|
237
|
-
rake gem:install # Build and install jetel-0.0.
|
238
|
-
rake gem:install:local # Build and install jetel-0.0.
|
239
|
-
rake gem:release # Create tag v0.0.
|
243
|
+
rake gem:build # Build jetel-0.0.15.gem into the pkg directory
|
244
|
+
rake gem:install # Build and install jetel-0.0.15.gem into system gems
|
245
|
+
rake gem:install:local # Build and install jetel-0.0.15.gem into system gems without network access
|
246
|
+
rake gem:release # Create tag v0.0.15 and build and push jetel-0.0.15.gem to Rubygems
|
240
247
|
```
|
data/Rakefile
CHANGED
data/bin/jetel
CHANGED
@@ -1,3 +1,23 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
|
3
|
+
# Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
# THE SOFTWARE.
|
22
|
+
|
3
23
|
require_relative '../lib/jetel/cli/cli'
|
data/lib/jetel.rb
CHANGED
@@ -1,3 +1,23 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
# Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
# THE SOFTWARE.
|
22
|
+
|
3
23
|
require_relative 'jetel/lib'
|
data/lib/jetel/cli/app.rb
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
# Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
# THE SOFTWARE.
|
22
|
+
|
3
23
|
require 'gli'
|
4
24
|
require 'pathname'
|
5
25
|
require 'pp'
|
data/lib/jetel/cli/cli.rb
CHANGED
@@ -1,3 +1,23 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
+
# Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
# THE SOFTWARE.
|
22
|
+
|
3
23
|
require_relative 'app'
|
@@ -1,5 +1,25 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
# Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
# THE SOFTWARE.
|
22
|
+
|
3
23
|
require 'pp'
|
4
24
|
|
5
25
|
require_relative '../../config/config'
|
@@ -1,5 +1,25 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
# Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
# THE SOFTWARE.
|
22
|
+
|
3
23
|
require 'terminal-table'
|
4
24
|
|
5
25
|
require_relative '../../downloaders/downloaders'
|
@@ -1,5 +1,25 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
# Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
# THE SOFTWARE.
|
22
|
+
|
3
23
|
require 'terminal-table'
|
4
24
|
|
5
25
|
require_relative '../../loaders/loaders'
|
@@ -1,5 +1,26 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
# Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
# THE SOFTWARE.
|
22
|
+
|
23
|
+
|
3
24
|
require 'terminal-table'
|
4
25
|
|
5
26
|
require_relative '../../modules/modules'
|
@@ -7,6 +28,16 @@ require_relative '../../modules/modules'
|
|
7
28
|
MODULES = Jetel::Modules.modules
|
8
29
|
|
9
30
|
MODULES_ACTIONS = {
|
31
|
+
sources: {
|
32
|
+
params: [
|
33
|
+
{
|
34
|
+
desc: 'Format',
|
35
|
+
default_value: nil,
|
36
|
+
arg_name: 'format=format',
|
37
|
+
flag: [:format]
|
38
|
+
}
|
39
|
+
]
|
40
|
+
},
|
10
41
|
download: nil,
|
11
42
|
extract: nil,
|
12
43
|
transform: nil,
|
@@ -1,5 +1,25 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
# Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
# THE SOFTWARE.
|
22
|
+
|
3
23
|
require_relative '../../version'
|
4
24
|
|
5
25
|
require_relative '../shared'
|
data/lib/jetel/cli/shared.rb
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
+
# Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
# THE SOFTWARE.
|
22
|
+
|
3
23
|
require 'gli'
|
4
24
|
require 'pathname'
|
5
25
|
|
data/lib/jetel/config/config.rb
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
# Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
# THE SOFTWARE.
|
22
|
+
|
3
23
|
module Jetel
|
4
24
|
Config = {
|
5
25
|
DATA_DIRECTORY: File.absolute_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'data'))
|
@@ -1,5 +1,25 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
+
# Copyright (c) 2015, Tomas Korcak <korczis@gmail.com>
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
# THE SOFTWARE.
|
22
|
+
|
3
23
|
require 'fileutils'
|
4
24
|
require_relative '../config/config'
|
5
25
|
|