kubectl-rb 0.1.0-i386-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +2 -0
- data/Gemfile +12 -0
- data/Rakefile +55 -0
- data/kubectl-rb.gemspec +18 -0
- data/lib/kubectl-rb.rb +8 -0
- data/lib/kubectl-rb/version.rb +4 -0
- data/vendor/kubectl +0 -0
- metadata +50 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d2405a4fec3314a733c64b0973fa6daaa34500c076607d8e9e27120191c308fd
|
4
|
+
data.tar.gz: 8197d8802d663ec8645ef4a6efa515598a023a6997370d21bc4d61b0021ab14c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f170f0f3531b7e003e99156b52deceb3783433a994436b1805ad63dfe09edff1df58aea7c24c3c0a8d990702f3a4e0676780b8f4ad8f64a3ce8dd32663dacc9a
|
7
|
+
data.tar.gz: 2c24c1bf4714f8c434381e9dc97a6b32bcf8174cdc1c87cfb9ee6041c859a73add8176c366af7d26404ca881258a86a7b29b44457eae44c654913982c7436104
|
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'bundler/setup'
|
2
|
+
require 'rspec/core/rake_task'
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
DISTRIBUTIONS = [
|
6
|
+
{ rb_platform: 'i386-darwin', filename: 'darwin-386' },
|
7
|
+
{ rb_platform: 'x86_64-darwin', filename: 'darwin-amd64' },
|
8
|
+
{ rb_platform: 'i386-linux', filename: 'linux-386' },
|
9
|
+
{ rb_platform: 'x86_64-linux', filename: 'linux-amd64' },
|
10
|
+
{ rb_platform: 'arm-linux', filename: 'linux-arm' },
|
11
|
+
{ rb_platform: 'arm64-linux', filename: 'linux-arm64' },
|
12
|
+
{ rb_platform: 'ppc64le-linux', filename: 'linux-ppc64le' },
|
13
|
+
{ rb_platform: 's390x-linux', filename: 'linux-s390x' },
|
14
|
+
{ rb_platform: 'i386-mswin64', filename: 'windows-386' },
|
15
|
+
{ rb_platform: 'x64-mswin64', filename: 'windows-amd64' }
|
16
|
+
]
|
17
|
+
|
18
|
+
task :build do
|
19
|
+
require 'rubygems/package'
|
20
|
+
require 'open-uri'
|
21
|
+
require 'kubectl-rb/version'
|
22
|
+
|
23
|
+
FileUtils.mkdir_p('pkg')
|
24
|
+
|
25
|
+
DISTRIBUTIONS.each do |distro|
|
26
|
+
FileUtils.rm_rf('vendor')
|
27
|
+
FileUtils.mkdir('vendor')
|
28
|
+
|
29
|
+
url = "https://dl.k8s.io/v#{KubectlRb::KUBECTL_VERSION}/kubernetes-client-#{distro[:filename]}.tar.gz"
|
30
|
+
archive = 'kubectl.tar.gz'
|
31
|
+
File.write(archive, open(url).read)
|
32
|
+
FileUtils.mkdir('kubectl')
|
33
|
+
system("tar -C kubectl -xzvf #{archive}")
|
34
|
+
FileUtils.rm(archive)
|
35
|
+
|
36
|
+
Dir.glob(File.join(*%w(kubectl kubernetes client bin), 'kubectl*')).each do |exe|
|
37
|
+
system("chmod +x #{exe}")
|
38
|
+
FileUtils.cp(exe, 'vendor')
|
39
|
+
end
|
40
|
+
|
41
|
+
FileUtils.rm_rf('kubectl')
|
42
|
+
|
43
|
+
gemspec = eval(File.read('kubectl-rb.gemspec'))
|
44
|
+
gemspec.platform = distro[:rb_platform]
|
45
|
+
package = Gem::Package.build(gemspec)
|
46
|
+
FileUtils.mv(package, 'pkg')
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
task default: :spec
|
51
|
+
|
52
|
+
desc 'Run specs'
|
53
|
+
RSpec::Core::RakeTask.new do |t|
|
54
|
+
t.pattern = './spec/**/*_spec.rb'
|
55
|
+
end
|
data/kubectl-rb.gemspec
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
$:.unshift File.join(File.dirname(__FILE__), 'lib')
|
2
|
+
require 'kubectl-rb/version'
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = 'kubectl-rb'
|
6
|
+
s.version = ::KubectlRb::VERSION
|
7
|
+
s.authors = ['Cameron Dutro']
|
8
|
+
s.email = ['camertron@gmail.com']
|
9
|
+
s.homepage = 'http://github.com/getkuby/kubectl-rb'
|
10
|
+
s.license = 'Apache-2.0'
|
11
|
+
|
12
|
+
s.description = s.summary = 'Kubectl distributed as a Rubygem.'
|
13
|
+
|
14
|
+
s.platform = Gem::Platform::RUBY
|
15
|
+
|
16
|
+
s.require_path = 'lib'
|
17
|
+
s.files = Dir['{lib,spec,vendor}/**/*', 'Gemfile', 'CHANGELOG.md', 'README.md', 'Rakefile', 'kubectl-rb.gemspec']
|
18
|
+
end
|
data/lib/kubectl-rb.rb
ADDED
data/vendor/kubectl
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kubectl-rb
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: i386-linux
|
6
|
+
authors:
|
7
|
+
- Cameron Dutro
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-06-02 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Kubectl distributed as a Rubygem.
|
14
|
+
email:
|
15
|
+
- camertron@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- CHANGELOG.md
|
21
|
+
- Gemfile
|
22
|
+
- Rakefile
|
23
|
+
- kubectl-rb.gemspec
|
24
|
+
- lib/kubectl-rb.rb
|
25
|
+
- lib/kubectl-rb/version.rb
|
26
|
+
- vendor/kubectl
|
27
|
+
homepage: http://github.com/getkuby/kubectl-rb
|
28
|
+
licenses:
|
29
|
+
- Apache-2.0
|
30
|
+
metadata: {}
|
31
|
+
post_install_message:
|
32
|
+
rdoc_options: []
|
33
|
+
require_paths:
|
34
|
+
- lib
|
35
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0'
|
45
|
+
requirements: []
|
46
|
+
rubygems_version: 3.0.6
|
47
|
+
signing_key:
|
48
|
+
specification_version: 4
|
49
|
+
summary: Kubectl distributed as a Rubygem.
|
50
|
+
test_files: []
|