pais_legacy 2.6.6 → 2.6.8
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/lib/pais_legacy/version.rb +1 -1
- data/lib/pais_legacy.rb +5 -3
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f5c8633384d6c64057e194e80eca8928d89a71aaf9d3f787130b207015ca80b
|
4
|
+
data.tar.gz: ca73df76f4b3e7454eb55eee51bcfb6427c51dede5fbd5b05189771fa5d3e525
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ded24e92dbf77d7a178933d378974677923417b3b56c953fc8fcc0f7989f3b57b8f776b9caddadd4c36b92d146f42f965e36dbcabd31c91ab405c0f54b1c839d
|
7
|
+
data.tar.gz: 541515e6cd27cac718e4374f545cf4292a71e0c86565dae1e73f6b963e23a253d5d943f9c477bb6181b8b6d7a09813b14b4d913700b418811995e7cf077bd2a8
|
data/lib/pais_legacy/version.rb
CHANGED
data/lib/pais_legacy.rb
CHANGED
@@ -23,7 +23,7 @@ module PaisLegacy
|
|
23
23
|
CLEARING_ACCOUNT=5199
|
24
24
|
TB_DIRECT_ACCOUNT=8999
|
25
25
|
|
26
|
-
def execute_ssh_command(command)
|
26
|
+
def self.execute_ssh_command(command)
|
27
27
|
output = ""
|
28
28
|
|
29
29
|
# Start an SSH session
|
@@ -62,6 +62,8 @@ module PaisLegacy
|
|
62
62
|
output
|
63
63
|
end
|
64
64
|
|
65
|
+
delegate :execute_ssh_command, to: :class
|
66
|
+
|
65
67
|
# --------------------------------------------------------------------------------
|
66
68
|
# Client
|
67
69
|
# --------------------------------------------------------------------------------
|
@@ -337,7 +339,7 @@ module PaisLegacy
|
|
337
339
|
unless line[8].nil?
|
338
340
|
cmd = gltr_create(ledger,line)
|
339
341
|
puts cmd
|
340
|
-
|
342
|
+
execute_ssh_command(cmd) # Post to PAIS
|
341
343
|
count += 1
|
342
344
|
end
|
343
345
|
end
|
@@ -352,7 +354,7 @@ module PaisLegacy
|
|
352
354
|
.gsub("{{end_date}}",end_date)
|
353
355
|
|
354
356
|
puts cmd
|
355
|
-
|
357
|
+
execute_ssh_command(cmd)
|
356
358
|
end
|
357
359
|
|
358
360
|
def self.rebuild_ledger(ledger,end_date)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pais_legacy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Pope
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pastel
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: net-ssh
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
description: Connects to PAIS Legacy (Informix) custom API over an ssh connection.
|
28
42
|
email:
|
29
43
|
- michael@dtcorp.com.au
|