kubectl 1.6.4
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 +7 -0
- data/README.md +8 -0
- data/VERSION +1 -0
- data/kube-bins/kubectl-darwin-x86_64 +0 -0
- data/kube-bins/kubectl-linux-x86_64 +0 -0
- data/lib/kubectl.rb +13 -0
- metadata +48 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ea6e7fa9c53259e515cbbd1e1efa11e498a93b25
|
4
|
+
data.tar.gz: e54a64400df9c61e53bb31132d45b0885cedcebb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f4052ec560bb563269d1fedfe3b85c2c1b7af6842432cda474647736744546c4166810c4c0c4e280423d85ec7e935d415c80ffd2e093a5dcd5f8b797e1f417db
|
7
|
+
data.tar.gz: 61ac7d626ac19ff994f5d83428253182543467f6cb0be1087623d8df2d12607541f68a32b4de532a4de02afdfbda00b910db49af801eb504769d2c014286c964
|
data/README.md
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
# kubectl gem
|
2
|
+
|
3
|
+
Simple gem that acts as a method to ship the kubectl binary around. Linux + MacOS x64 supported. Provides one method:
|
4
|
+
|
5
|
+
```
|
6
|
+
irb(main):001:0> require 'kubectl'; Kubectl.bin_path
|
7
|
+
=> "/Users/lstoll/src/github.com/lstoll/kubectl-gem/kube-bins/kubectl-darwin-x86_64"
|
8
|
+
```
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.6.4
|
Binary file
|
Binary file
|
data/lib/kubectl.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
|
3
|
+
class Kubectl
|
4
|
+
def self.bin_path
|
5
|
+
os = Gem::Platform.local.os
|
6
|
+
arch = Gem::Platform.local.cpu
|
7
|
+
binpath = File.expand_path(File.join(File.dirname(__FILE__), "..", "kube-bins", "kubectl-#{os}-#{arch}"))
|
8
|
+
if !File.exist?(binpath)
|
9
|
+
raise "No kubectl binary for #{os} #{arch}"
|
10
|
+
end
|
11
|
+
binpath
|
12
|
+
end
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kubectl
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.6.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Lincoln Stoll
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-05-21 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Embeds and provides a really shallow wrapper for the kubectl binary
|
14
|
+
email: lincoln.stoll@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- README.md
|
20
|
+
- VERSION
|
21
|
+
- kube-bins/kubectl-darwin-x86_64
|
22
|
+
- kube-bins/kubectl-linux-x86_64
|
23
|
+
- lib/kubectl.rb
|
24
|
+
homepage: https://github.com/lstoll/kubectl-gem
|
25
|
+
licenses:
|
26
|
+
- Apache-2.0
|
27
|
+
metadata: {}
|
28
|
+
post_install_message:
|
29
|
+
rdoc_options: []
|
30
|
+
require_paths:
|
31
|
+
- lib
|
32
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
requirements: []
|
43
|
+
rubyforge_project:
|
44
|
+
rubygems_version: 2.6.11
|
45
|
+
signing_key:
|
46
|
+
specification_version: 4
|
47
|
+
summary: Wrapper for kubectl
|
48
|
+
test_files: []
|