train-kubernetes-docs 0.1.0 → 0.1.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 +4 -4
- data/lib/train-kubernetes-docs/platform.rb +10 -10
- data/lib/train-kubernetes-docs/transport.rb +16 -16
- data/lib/train-kubernetes-docs/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: e570b1511e8fcef0310654a1410c1ee111897560
|
|
4
|
+
data.tar.gz: edba7ce37d5f28c6a4a5078c88fe38182a10022a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28df15286b4b1b16dfca7e2d0ae3b0c13cb1085f8e612104ada7e522f30b567d4502038598f4b2c708a810006d6157c7b76d8cb92cfb84233eb7d1c5fdb6616f
|
|
7
|
+
data.tar.gz: 25dbff9da7bb272661b2a69278b81e2fc1a108cd8564a6bbce12c8b12d2945d2c2c74d166bc350b9515220dcd66f06eefed19892576b0aaee1e724e62d08514d
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
module TrainPlugins
|
|
2
|
-
module TrainKubernetes
|
|
3
|
-
module Platform
|
|
4
|
-
def platform
|
|
5
|
-
Train::Platforms.name('k8s').in_family('cloud')
|
|
6
|
-
force_platform!('k8s', release: TrainPlugins::TrainKubernetes::VERSION)
|
|
7
|
-
end
|
|
8
|
-
end
|
|
9
|
-
end
|
|
10
|
-
end
|
|
1
|
+
module TrainPlugins
|
|
2
|
+
module TrainKubernetes
|
|
3
|
+
module Platform
|
|
4
|
+
def platform
|
|
5
|
+
Train::Platforms.name('k8s-docs').in_family('cloud')
|
|
6
|
+
force_platform!('k8s-docs', release: TrainPlugins::TrainKubernetes::VERSION)
|
|
7
|
+
end
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
require 'train-kubernetes-docs/connection'
|
|
2
|
-
|
|
3
|
-
module TrainPlugins
|
|
4
|
-
module TrainKubernetes
|
|
5
|
-
class Transport < Train.plugin(1)
|
|
6
|
-
name 'k8s'
|
|
7
|
-
option :kubeconfig, default: ENV['KUBECONFIG'] || '~/.kube/config'
|
|
8
|
-
option :pod, default: nil
|
|
9
|
-
option :container, default: nil
|
|
10
|
-
option :namespace, default: nil
|
|
11
|
-
def connection(_instance_opts = nil)
|
|
12
|
-
@connection ||= TrainPlugins::TrainKubernetes::Connection.new(@options)
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
1
|
+
require 'train-kubernetes-docs/connection'
|
|
2
|
+
|
|
3
|
+
module TrainPlugins
|
|
4
|
+
module TrainKubernetes
|
|
5
|
+
class Transport < Train.plugin(1)
|
|
6
|
+
name 'k8s-docs'
|
|
7
|
+
option :kubeconfig, default: ENV['KUBECONFIG'] || '~/.kube/config'
|
|
8
|
+
option :pod, default: nil
|
|
9
|
+
option :container, default: nil
|
|
10
|
+
option :namespace, default: nil
|
|
11
|
+
def connection(_instance_opts = nil)
|
|
12
|
+
@connection ||= TrainPlugins::TrainKubernetes::Connection.new(@options)
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|