holistics 0.0.9 → 0.0.10
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/README.md +3 -3
- data/lib/holistics.rb +3 -1
- data/lib/holistics/api_client.rb +4 -4
- data/lib/holistics/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6754ae8febe4d72c2e2f0384dae3af78461812e6
|
|
4
|
+
data.tar.gz: dfdb65c2adba480f9124b38c6c9d309706295bbd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ee75e12713261a97f19f9a8be930536a9a5b7fa286c2e6649f2ba822960805a730380d9b4d3e20f3baaebb08d351de9eef048929a733babe683a6088a23e6e8
|
|
7
|
+
data.tar.gz: cfd1fb7874ebbab54099be452b298566f69ebabfe7d536546575d7d6fa5afcdca90466fbafec625fc0ae9aec072a3292ed26c55260f682c36a6d74506127a564
|
data/README.md
CHANGED
|
@@ -32,14 +32,14 @@ Then perform authentication:
|
|
|
32
32
|
|
|
33
33
|
### To change remote server for testing purpose
|
|
34
34
|
|
|
35
|
-
$
|
|
35
|
+
$ HOLISTICS_DEV=1 holistics ...
|
|
36
36
|
# Will point to http://localhost:3000
|
|
37
37
|
|
|
38
|
-
$
|
|
38
|
+
$ HOLISTICS_STAGING=1 holistics ...
|
|
39
39
|
# Will point to https://staging.holistics.io
|
|
40
40
|
|
|
41
41
|
# or custom host
|
|
42
|
-
$
|
|
42
|
+
$ HOLISTICS_HOST=https://blah.com holistics ...
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
## Data Transport commands
|
data/lib/holistics.rb
CHANGED
|
@@ -46,6 +46,8 @@ module Holistics
|
|
|
46
46
|
method_option :from_table_name, aliases: '-t', type: :string, required: false, desc: 'The table to copy over'
|
|
47
47
|
method_option :dest_table_name, aliases: '-n', type: :string, required: false, desc: '(optional) Rename destination table. Please specify fully qualified name'
|
|
48
48
|
method_option :config_path, aliases: '-c', type: :string, required: false, desc: 'Path to transport config (JSON/YML)̄ file'
|
|
49
|
+
method_option :full, type: :boolean, default: true, required: false, desc: 'Full table transport'
|
|
50
|
+
method_option :incremental, type: :boolean, default: false, required: false, desc: 'Incremental table transport'
|
|
49
51
|
desc 'transport', 'Submit a data transport job'
|
|
50
52
|
|
|
51
53
|
def transport
|
|
@@ -61,4 +63,4 @@ module Holistics
|
|
|
61
63
|
end
|
|
62
64
|
|
|
63
65
|
end
|
|
64
|
-
end
|
|
66
|
+
end
|
data/lib/holistics/api_client.rb
CHANGED
|
@@ -94,12 +94,12 @@ module Holistics
|
|
|
94
94
|
|
|
95
95
|
def server_url
|
|
96
96
|
host =
|
|
97
|
-
if ENV['
|
|
97
|
+
if ENV['HOLISTICS_DEV'] || ENV['HOLISTICS_TEST']
|
|
98
98
|
'http://localhost:3000'
|
|
99
|
-
elsif ENV['
|
|
99
|
+
elsif ENV['HOLISTICS_STAGING']
|
|
100
100
|
'https://staging.holistics.io'
|
|
101
|
-
elsif ENV['
|
|
102
|
-
ENV['
|
|
101
|
+
elsif ENV['HOLISTICS_HOST']
|
|
102
|
+
ENV['HOLISTICS_HOST']
|
|
103
103
|
else
|
|
104
104
|
SERVER_URL
|
|
105
105
|
end
|
data/lib/holistics/version.rb
CHANGED