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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 905118e470beed1394cacd177abe7bb59a557579d6c009fc8c15dd863025dd2a
4
- data.tar.gz: b5affd39ce176831c5b8746fc371b778dc58b290a8541bb5821ee62177bb51a5
3
+ metadata.gz: 9f5c8633384d6c64057e194e80eca8928d89a71aaf9d3f787130b207015ca80b
4
+ data.tar.gz: ca73df76f4b3e7454eb55eee51bcfb6427c51dede5fbd5b05189771fa5d3e525
5
5
  SHA512:
6
- metadata.gz: 634daa2697f4aec7a3f25d1ab69a133ef431083965cf3216c36ddeaaa1450afccf1c440a77db23bf0926a980e62b20e8932ca9d37bb7bc757d1cf6173cb91216
7
- data.tar.gz: 44242fa990833f8a1866083e6bbb2fb41ee8051b6173a5a588c175a621a75da5b9cb804a30148be663e0bcdf8609152e4bad4b120b770e195a7ca52e1e94cdd8
6
+ metadata.gz: ded24e92dbf77d7a178933d378974677923417b3b56c953fc8fcc0f7989f3b57b8f776b9caddadd4c36b92d146f42f965e36dbcabd31c91ab405c0f54b1c839d
7
+ data.tar.gz: 541515e6cd27cac718e4374f545cf4292a71e0c86565dae1e73f6b963e23a253d5d943f9c477bb6181b8b6d7a09813b14b4d913700b418811995e7cf077bd2a8
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PaisLegacy
4
- VERSION = "2.6.6"
4
+ VERSION = "2.6.8"
5
5
  end
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
- Open3.capture2(cmd) # Post to PAIS
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
- Open3.capture2(cmd)
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.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-04 00:00:00.000000000 Z
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