kube_cluster 0.4.17 → 0.5.1

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: 6069dc5606c379bb81a6bef42c7f441d2b19323a44ae229aa57d9d2f7e6ebb55
4
- data.tar.gz: 9f04670684504e0906601ad78080dcb168efbb6448378e7a2d5615a641900c77
3
+ metadata.gz: 98ac582a4bf128ea0f7e7274e7028552bb7bf787a989a89c9ac268c0078699f6
4
+ data.tar.gz: 1c4cd97acaef723f64e72cc4310a01300b10c764c94ba6e8a78ed1303d954c73
5
5
  SHA512:
6
- metadata.gz: 557bf0c0c08f9d8de57cbb6100ca6ee653d832703e4b401d1a1d03d0eaf38d312baf649cfea5a5b8ee9c0ea46de82dc94e583ea0d2a7a9096439123b1a723970
7
- data.tar.gz: b916651e7b0e395d04c4e63a5174354876e56392cf8116a93b8c46d1b06c8714277f65de467d5f5a76b7542a3a1669f40a4dc37e5df55176a557202afcb6ddcf
6
+ metadata.gz: ec98051bd7d01cfe1444e9b1c792736a6d009c3a63576738d3ed12b33bb7bfab0644e89570c79f5e6db366c45a7fe06d8df9a1b46b4fa8e588681581ccdfce2e
7
+ data.tar.gz: ff2c9ebf92b18291ef4f6250304d14a570f4cbf9ec4f1fce59e7a7e8e42721c7454bcfdcfff80929bd153d58f5f9a6640012dcc152c1521bc771c729a1afc535
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kube_cluster (0.4.17)
4
+ kube_cluster (0.5.1)
5
5
  kube_kubectl (~> 2.0)
6
6
  kube_schema (~> 1.4.8)
7
7
  scampi (~> 0.1)
@@ -50,7 +50,7 @@ GEM
50
50
  samovar (~> 2.1)
51
51
  bake-gem (0.13.1)
52
52
  console (~> 1.25)
53
- bake-modernize (0.54.1)
53
+ bake-modernize (0.55.0)
54
54
  async-http
55
55
  async-ollama (~> 0.10)
56
56
  bake
@@ -150,7 +150,7 @@ GEM
150
150
  timeout
151
151
  net-smtp (0.5.1)
152
152
  net-protocol
153
- openssl (4.0.1)
153
+ openssl (4.0.2)
154
154
  parallel (2.1.0)
155
155
  parser (3.3.11.1)
156
156
  ast (~> 2.4.1)
@@ -193,7 +193,7 @@ GEM
193
193
  regexp_parser (2.12.0)
194
194
  reline (0.6.3)
195
195
  io-console (~> 0.5)
196
- rubocop (1.86.1)
196
+ rubocop (1.86.2)
197
197
  json (~> 2.3)
198
198
  language_server-protocol (~> 3.17.0.2)
199
199
  lint_roller (~> 1.1.0)
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Kube
4
+ module Cluster
5
+ module ScriptCommands
6
+ def BashScript(*strings) = ['bash', '-exc', *strings]
7
+ def PythonScript(*strings) = ['python3', '-c', *strings]
8
+ def RubyScript(*strings) = ['ruby', '-e', *strings]
9
+ def ShScript(*strings) = ['sh', '-exc', *strings]
10
+ end
11
+
12
+ include ScriptCommands
13
+ module_function :BashScript, :PythonScript, :RubyScript, :ShScript
14
+ end
15
+ end
16
+
17
+ # Make script helpers available inside instance_exec blocks on Hashes.
18
+ # Without this, Hash#method_missing (autovivification) silently swallows
19
+ # calls like ShScript(...) and returns {} instead of an array.
20
+ Hash.include(Kube::Cluster::ScriptCommands)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kube
4
4
  module Cluster
5
- VERSION = "0.4.17"
5
+ VERSION = "0.5.1"
6
6
  end
7
7
  end
data/lib/kube/cluster.rb CHANGED
@@ -6,6 +6,7 @@ require "kube/schema"
6
6
 
7
7
  require_relative "../kube/errors"
8
8
  require_relative "cluster/version"
9
+ require_relative "cluster/script_commands"
9
10
  require 'kube/ctl'
10
11
  require_relative 'helm/repo'
11
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kube_cluster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.17
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan K
@@ -194,6 +194,7 @@ files:
194
194
  - lib/kube/cluster/resource/extensions/README.md
195
195
  - lib/kube/cluster/resource/extensions/custom_resource_definition.rb
196
196
  - lib/kube/cluster/resource/persistence.rb
197
+ - lib/kube/cluster/script_command.rb
197
198
  - lib/kube/cluster/version.rb
198
199
  - lib/kube/cluster/version.rb.erb
199
200
  - lib/kube/errors.rb