Project

kubectl-rb

0.0
No release in over 3 years
Low commit activity in last 3 years
Kubectl distributed as a Rubygem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

kubectl-rb

The Kubernetes CLI, eg. kubectl distributed as a Rubygem.

Intro

Kubectl is the command-line interface for Kubernetes.

It's wrapped up as a Rubygem here to make it easy to distribute with Ruby apps, and was originally created for the Kuby project.

Usage

There is only one method that returns the absolute path to the kubectl executable:

require 'kubectl-rb'

# /Users/me/.rbenv/versions/2.5.6/lib/ruby/gems/2.5.0/gems/kubectl-rb-0.1.0-x86_64-darwin/vendor/kubectl
KubectlRb.executable

The version of kubectl can be obtained like so:

require 'kubectl-rb/version'

# "1.18.3"
KubectlRb::KUBECTL_VERSION

License

Kubernetes and kubectl are licensed under the Apache 2 license. The LICENSE file contains a copy.

Authors