kscript 1.0.2 → 1.0.3

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: 812d19779e0fadd4fc72f94999c3d8776a2391147c467c14067d203050c94c01
4
- data.tar.gz: adad5fb5f74798030650f6595f8e90fc86eacfb490a4b7bb5c2fefca1d4552d7
3
+ metadata.gz: 01ab48d4e8819e3190707f87bbc3fa8a98df3046c278a6c6a625c8eca25d4585
4
+ data.tar.gz: 15970ccc55e4900e98d0c99a6e3ebb4ebe9555891e63393ec31459c4847d5ab9
5
5
  SHA512:
6
- metadata.gz: e2fff6ee0202f526fb11452d3848ce5d2c0f872bb6c457ebbf8dec4f55e45c0532fbd1b8daddc0d58133814c83553ef6a9f8e063c1ef4812bdf9bd4c869ec364
7
- data.tar.gz: 6866406cb4c5fd9c74b079c636d778171099db330309f38e13dcfd85f2adbdcd3aa2d96a453b8ad46f46fc505353d4c175b0c40a41732743da7073ce386f2c43
6
+ metadata.gz: 0e45e15a0732f678f90db60384458c542f8d038460a801a60f986c197f975321fbf8ca88e39902f5fd2d1d8c2b39b8f4adae55522253824f8cf9a5afff947a83
7
+ data.tar.gz: 4b0f0f5c5be88b4b248ad9e5d5a8ccca3c0f9a267da5a664afe426917881f16ec173b09e3e287d44fbe9a9aa86aa74ef651c96abaae4b34e77ab1c6b40a85ed1
@@ -15,8 +15,9 @@ module Kscript
15
15
 
16
16
  # Initialize with certificate path
17
17
  # @param cert_path [String] path to the certificate file
18
- def initialize(cert_path = DEFAULT_CERT_PATH)
19
- @cert_path = cert_path
18
+ def initialize(cert_path = nil, *_args, **opts)
19
+ super(**opts.merge(service: 'kk_es_fingerprint'))
20
+ @cert_path = cert_path || self.class::DEFAULT_CERT_PATH
20
21
  end
21
22
 
22
23
  def run
@@ -9,6 +9,10 @@ require 'kscript'
9
9
 
10
10
  module Kscript
11
11
  class KkFfmpegUtils < Base
12
+ def initialize(*_args, **opts)
13
+ super(**opts.merge(service: 'kk_ffmpeg'))
14
+ end
15
+
12
16
  def run
13
17
  with_error_handling do
14
18
  install
@@ -15,7 +15,9 @@ module Kscript
15
15
  end
16
16
  end
17
17
 
18
- def initialize(jenkins_url, user, password)
18
+ def initialize(*args, **opts)
19
+ super(**opts.merge(service: 'kk_jenkins'))
20
+ jenkins_url, user, password = args
19
21
  @jenkins_url = jenkins_url
20
22
  @user = user
21
23
  @password = password
@@ -15,7 +15,9 @@ module Kscript
15
15
  end
16
16
  end
17
17
 
18
- def initialize(project_name, project_env, base_url, username, password)
18
+ def initialize(*args, **opts)
19
+ super(**opts.merge(service: 'kk_kibana'))
20
+ project_name, project_env, base_url, username, password = args
19
21
  @base_url = base_url
20
22
  @username = username
21
23
  @password = password
@@ -20,7 +20,8 @@ module Kscript
20
20
 
21
21
  # Initialize the LVM mounter with configuration
22
22
  # @param config [Hash] configuration options
23
- def initialize(config = {}, *_args, **_opts)
23
+ def initialize(config = {}, *_args, **opts)
24
+ super(**opts.merge(service: 'kk_lvm'))
24
25
  @config = DEFAULT_CONFIG.merge(config)
25
26
  end
26
27
 
@@ -9,6 +9,10 @@ require 'kscript'
9
9
 
10
10
  module Kscript
11
11
  class KkSyscheckUtils < Base
12
+ def initialize(*_args, **opts)
13
+ super(**opts.merge(service: 'kk_syscheck'))
14
+ end
15
+
12
16
  def run
13
17
  with_error_handling do
14
18
  check
@@ -6,5 +6,5 @@
6
6
  # https://opensource.org/licenses/MIT
7
7
 
8
8
  module Kscript
9
- VERSION = '1.0.2'
9
+ VERSION = '1.0.3'
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kk